Dofactory.com
Dofactory.com
Earn income with your HTML skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

HTML <fieldset> name Attribute

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.

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>

Last updated on Sep 30, 2023

Earn income with your HTML skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

Guides