Convert Fahrenheit to Celsius

Hosmer23 0 Tallied Votes 120 Views Share

A simple HTML code that converts Fahrenheit to Celsius and Vice Versa.

<font size=+1>Enter a number in either field, then click outside
the text box.&nbsp;<form>F:&nbsp;</font><input type="text" name="F" value="32"
    onChange="C.value = 100/(212-32) * (this.value - 32 )">
<br><font size=+1>C:&nbsp;</font><input type="text" name="C" value="0"
    onChange="F.value = (212-32)/100 * this.value + 32 ">
<center></form>