Output HTML

HTML <output> Tag To display the result of a certain calculation or the outcome of a user action the HTML <output> tag is used. It was introduced in HTML5. Syntax: <output>……</output> Example: <!DOCTYPE html> <html> <body> <form oninput=”z.value=parseInt(x.value)+parseInt(y.value)”> <label>First Value:</label><br><br> <input type=”number” id=”y” value=”100″><br><br>+<br><br> <label>Second Value:</label><br><br> 0<input type=”range” id=”x” value=”100″>100 <br><br>=<br><br> <label>Output:</label> <output name=”z” for=”x … Read more