Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <title>Yards to Inches Length Converter</title> <body> <h2>Length Converter</h2> <p>Type a value in the Yards field to convert the value to Inches:</p> <p> <label>Yards</label> <input id="inputYards" type="number" placeholder="Yards" oninput="LengthConverter(this.value)" onchange="LengthConverter(this.value)"> </p> <p>Inches: <span id="outputInches"></span></p> <script> function LengthConverter(valNum) { document.getElementById("outputInches").innerHTML=valNum*36; } </script> </body> </html>