Free HTML Code | Decimal to percentage convertor html code

 We will try to give you a new code for every day . 

You can create your tool website and earn unlimited with google and google adsense. 
You can create your free website with the google product name as Blogger. 
You just open Blogger.com 
create your account and write or paste this code in the html view of your blogger. 

so the Code is given below you can copy and paste in your website . 

Here is a code for Decimal to percentage convertor HTML code    


<html lang="en">

<head>

    <meta charset="UTF-8"></meta>

    <meta content="width=device-width, initial-scale=1.0" name="viewport"></meta>

    <title>Decimal to Percent Converter</title>

    <style>

        body {

            font-family: Arial, sans-serif;

            text-align: center;

            margin: 50px;

        }

    </style>

</head>

<body>

    <h2>Decimal to Percent Converter</h2>

    <label for="decimalInput">Enter Decimal:</label>

    <input id="decimalInput" placeholder="Enter decimal" step="any" type="number" />

    <button onclick="convertDecimalToPercent()">Convert</button>


    <p id="result"></p>


    <script>

        function convertDecimalToPercent() {

            // Get the decimal input value

            var decimalInput = document.getElementById("decimalInput").value;


            // Convert decimal to percent

            var percent = decimalInput * 100;


            // Display the result

            document.getElementById("result").innerHTML = "Percent: " + percent + "%";

        }

    </script>

</body>

</html>


Comments

Popular posts from this blog

बस माल पैक करो और कंपनी को वापस कर दो और 60 हजार रुपए महीना कमाओ, bindi packing business

3 ONLINE EARNING APP , NO CONDITION , NO INVESTMENT , ONLY EARNING , घर बैठे पैसा कमाने के लिए 3 सबसे बढ़िया APP .

हर महीने 27 लाख और सालाना 3 करोड़ 62 लाख की कमाई देने वाला बिज़नेस लागत भी है कम