HTML <fieldset> name Attribute

The name attribute on a <fieldset> tag assigns a name to the group of input elements contained by the fieldset.

Example

#

A name attribute on a <fieldset> element.
The name represents all input elements of the fieldset.

Customer Information


<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>

Using name

The name attribute specifies the fieldset's name.

This name represents the group of input elements contained by the fieldset.


Syntax

<fieldset name="name">

Values

#

Value Description
name String value that represents the fieldset name.

Browser support

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

You may also like

 Back to <fieldset>
Guides