Name

fieldset — <fieldset> . . . </fieldset>

Groups related form controls and labels. Fieldset elements are placed within the form element. It is similar to div but is specifically for grouping fields. It was introduced to improve form accessibility for users with alternative browsing devices.

Attributes

Core, Internationalization, Events

Example

<form>
<fieldset id="customer">
  <label>Full name <input type="text" name="name" />
 </label>
  <label>Email Address <input type="text" name="email" />
 </label>
  <label>State <input type="text" name="state" /></label>
</fieldset>
</form>

Get HTML and XHTML Pocket Reference, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.