HTML fieldset name attribute
Examples
With the name attribute of <fieldset>:
<fieldset name="personalia">
Name: <input type="text"><br>
Email: <input type="text"><br>
</fieldset>
Name: <input type="text"><br>
Email: <input type="text"><br>
</fieldset>
try it"
Browser Support
In addition to Internet Explorer, the other major browsers support name attribute.
Definition and Usage
name attribute specifies the name of the fieldset.
name attribute is used to reference elements in JavaScript, or a reference to the form data when the form is submitted.
Differences between HTML 4.01 and HTML5
Attribute is <fieldset> tag in HTML5 the new property.
grammar
<fieldset name="text">
Property Value
值 | 描述 |
---|---|
name | 规定 fieldset 的名称。 |
HTML <fieldset> tag