html5 What does the output tag mean? The methods of using the html5 output tag are all here. This article introduces the definition of the html5 output tag, as well as the method of using the html5 output tag (with code examples)
html5 output tag tag definition:
html5
1.for specifies the id list of one or more elements, separated by spaces. These elements describe the relationship between the elements used in the calculation and the results of the calculation.
2.form specifies a list of ids of one or more forms to which the
3.name specifies the name of the
Based on the example:
Example:
<form oninput="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>
Copy after login
Result:
##