HTML < output > Tag - Learn About Website | DaddyFile

0

HTML <output> Tag

Example

Perform a calculation and show the result in an <output> element:

<formoninput="x.value=parseInt(a.value)+parseInt(b.value)">0
  <input type="range" id="a" value="50">100
  +<input type="number" id="b" value="50">
  =<output name="x" for="a b"></output>
</form>


Definition and Usage

The <output> tag represents the result of a calculation (like one performed by a script).

Differences Between HTML 4.01 and HTML5

The <output> tag is new in HTML5.

Post a Comment

 
Top