<output> HTML Tag
- Element of
- What On Earth Is Semantic Markup? (And Why Should You Learn To Write It)
- What does
<output> HTML Tagdo?
Calculating in HTML 5
<output> element is new in HTML 5. This semantic tag gives us an easy way to display the results of a calculation.
Of course, a fixed calculation can be written in plain text. But
<output> is designed for complex calculations that are performed by the user or a script, such as the results of an exchange rate conversion, or a price quotation. It can be used inside a
In order to leverage
<input> type of
number to tell the form that the user is entering integers. If the user enters something other than an integer,
<output> form will return
NaN (not a number). Other
<input> types are valid, including
<output> is not supported universally.
Browser Support for output