HTML slt;fieldset sgt; name property
The name property is used to define the name of the fieldset.
With the name property, slt;fieldset::
姓名: <input type="text"><br>
邮箱: <input type="text"><br>
</fieldset>
Try it out . . .
Browser support
Name properties are supported by all major browsers except Internet Explorer.
Definitions and usages
The name property specifies the name of the fieldset.
The name property is used to refer to elements in JavaScript, or to reference form data after a form is submitted.
The difference between HTML 4.01 and HTML5
The property is the new property in HTML5 for the label.
Grammar
The property value
value | describe |
---|---|
name | Specifies the name of the fieldset. |
Related articles
HTML DOM Reference Manual: HTML DOM Fieldset name property