HTML and CSS Reference
In-Depth Information
form="
id of form owner
id of form owner
"
Explicitly associates the input control with its associated form (its
form owner
). With this
method, the
output
control does not need to be a child of the applicable
form
element.
name="
text
text
"
Gives an identifying name to the form control used in form submission.
Example
<form oninput="myCalc.value = parseInt(a.value) +
parseInt(b.value)">
<input type="number" id="a"> + <input type="number" id="b">
=
<output name="myCalc" for="a b">
[displays value
of a+b]
</output>
</form>