HTML <fieldset> Tag


The <fieldset> HTML element specifies a set of form fields. It is generally used to group logically related controls and labels within a web form. Grouping form controls makes it easier for users to understand their purpose and makes the documents more accessible.
For greater clarity, browsers display the result of using the <fieldset> element as a frame. Its appearance depends on the operating system, as well as the browser used.


Permitted Parents
Any element that accepts flow content
<legend> as first child; after that block, inline, and text
Start/End Tags
Start tag: required, End tag: required


<legend>Personal Information:</legend>
Name: <input type="text" size="30" />
Email: <input type="text" size="30" />


Attribute Definition
disabled Specifies that a group of related form elements should be disabled.
form Specifies one or more forms the fieldset belongs to.
name Specifies a name for the fieldset.

Global Attributes

The <fieldset> tag also supports the Global Attributes in HTML5

Event Attributes

The <fieldset> tag also supports the Event Attributes in HTML5

Browser Support

Explorer Edge Chrome Firefox Opera Safari
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung

Last updated by CSSPortal on: 6th December 2019