Tutorials References Exercises Bootcamps Videos Menu
Sign Up Create Website Get Certified Upgrade

HTML <fieldset> name Attribute

❮ HTML <fieldset> tag


A <fieldset> with a name attribute:

<form action="/action_page.php" method="get">
  <fieldset name="personalia">
    <label for="fname">First name:</label>
    <input type="text" id="fname" name="fname">
  <button type="button"
  Change background color of fieldset</button>
  <input type="submit">
Try it Yourself »

Definition and Usage

The name attribute specifies a name for a fieldset.

The name attribute is used to reference elements in a JavaScript, or to reference form data after a form is submitted.

Browser Support

name Yes 11.0 Yes Yes Yes


<fieldset name="text">

Attribute Values

Value Description
name Specifies the name of the fieldset

❮ HTML <fieldset> tag