HTML
tag

HTML

tag is used to group the logically related fields/labels contained within an HTML form.

The use of this tag is optional while creating an HTML form but using , it is easy to understand the purpose of grouped elements of form.

The tag is used with the

element as a first child to define the caption for the grouped related fields.

Syntax

Following are some specifications about the HTML

tag

Display Block
Start tag/End tag Both Start and End tag
Usage Structural (Within HTML Form)

Example 1




Test it Now

Output:

HTML fieldset tag

Attribute

HTML Tags List = New in HTML5.

Tag-specific attribute

Attribute Value Description
disabledHTML Tags List disabled It specifies that all form controls within the fieldset element are disabled.
formHTML Tags List form_id It specifies the one or more form(s) to which fieldset controls belongs.
nameHTML Tags List text It specifies the name associated with fieldset. It will not display at the browser and useful with JS.

Global attribute

HTML < fieldset > tag supports the global attributes in HTML

Event attribute

HTML < fieldset > tag supports the event attributes in HTML.

Supporting Browsers

Element chrome browser Chrome ie browser IE firefox browser Firefox opera browser Opera safari browser Safari
Yes Yes Yes Yes Yes




Hot Tutorials

Contact US

Email:jjw.quan@gmail.com

HTML fieldset Tag
10/30