The name attribute on a <fieldset> tag assigns a name to the group of input elements contained by the fieldset.
This attribute represents the group of input elements inside.
A name attribute on a <fieldset> element.
The name represents all input elements of the fieldset.
<form action="/tutorial/action.html">
<fieldset name="customer-info">
<legend>Customer Information</legend>
<label>Name</label>
<input type="text" name="name"><br />
<label>Age</label>
<input type="text" name="age"><br />
<label>Email</label>
<input type="text" name="email"><br />
<input type="submit">
</fieldset>
</form>
The name attribute specifies the fieldset's name.
This name represents the group of input elements contained by the fieldset.
<fieldset name="name">
Value | Description |
---|---|
name | String value that represents the fieldset name. |
Here is when name support started for each browser:
Chrome
|
1.0 | Sep 2008 |
Firefox
|
1.0 | Sep 2002 |
IE/Edge
|
11.0 | Oct 2013 |
Opera
|
1.0 | Jan 2006 |
Safari
|
1.0 | Jan 2003 |
Back to <fieldset>