Latest web development tutorials

HTML fieldset name attribute

HTML fieldset Tag Reference HTML <fieldset> tag

Examples

With the name attribute of <fieldset>:

<fieldset name="personalia">
Name: <input type="text"><br>
Email: <input type="text"><br>
</fieldset>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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 Reference HTML <fieldset> tag