Web Application

TEMPERATURE CONVERTER

Capture

TEMPERATURE CONVERTER

<html>
<title>Fahrenheit to Celcius Temperature Converter</title>
<body>

<h2>Temperature Converter</h2>
<p>
<label>Fahrenheit</label>
<input id=”inputFahrenheit” type=”number” placeholder=”Fahrenheit” oninput=”temperatureConverter(this.value)” onchange=”temperatureConverter(this.value)”>
</p>
<p>Celcius: <span id=”outputCelcius”></span></p>

<script>
function temperatureConverter(valNum) {
valNum = parseFloat(valNum);
document.getElementById(“outputCelcius”).innerHTML=(valNum-32)/1.8;
}
</script>

</body>
</html>

    DEBAJYOTI SEN

    I am very passionate in making circuits and making websites.I have habit of reading story books and making models.

    https://samvaba.com/user/debajyotisen_2003/?um_action=edit

    2 thoughts on “TEMPERATURE CONVERTER

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    Back To Top