The HTML5 fieldset Tag
The HTML5 <fieldset> tag is utilized in an HTML document such that all related elements in a form are in one group. When the HTML5 <fieldset> tag is placed, there will be a box which encloses all related elements.
The use of HTML5 <fieldset> tag is recognized by all the major web browsers that are being utilized these days such as Internet Explorer, Google Chrome, Firefox, Opera and Safari.
Some of the attributes that work with the HTML5 <fieldset> tag are not recognized in HTML4.01 such as disabled, form and name attributes.
When the HTML5 <fieldset> tag is used, it usually comes with the <legend> tag which showcases the caption.
The attributes for HTML5 <fieldset> tag are the following:
Attribute |
Value |
Description |
disabled |
disabled |
Identifies what kind of a group of elements should be disabled |
form |
form_id |
Identifies the fieldset elements form belongs to |
name |
text |
Identifies a name for the fieldset |
Using the HTML5 <fieldset> tag is not a problem even with the Global Attribute or Event Attribute in HTML5.