HTML Fieldset Tag | Fieldset Tag | HTML <fieldset> Tag Tutorial by WDH

HTML Fieldset Tag


HTML fieldset Tag
This tag it is used to group related elements in a form and this tag draws a box around the related elements.
For example :



Output :

Browser Support
All browsers are supported like chrome, opera, firefox, microsoft edge.

Global and event Attributes
This tag also supports the Global and event Attributes in HTML.

For example :

Output :

Attributes:
 
Attribute value description
disabled disabled It Specifies that a group of related form elements should be disabled
form form_id It Specifies which form the fieldset belongs to
name text It is defined a name for the fieldset

Default CSS Settings :
Most browsers will display the <fieldset>
element in css
fieldset {
  display: block;
  margin-left: 2px;
  margin-right: 2px;
  padding-top: 0.35em;
  padding-bottom: 0.625em;
  padding-left: 0.75em;
  padding-right: 0.75em;
  border: 2px groove (internal value);

}