< All the HTML Tags >

<fieldset></fieldset>

Video Coming Soon...

  • fieldset

    Tag Type

    block

    Tag Category

    forms

    Groups related elements in a form

    Viewed

    1

    Examples

    1

Definition:

The HTML <fieldset> tag is used to group related elements within a form, providing a visual and semantic structure for form controls.

This tag typically contains a <legend> element, which acts as a title for the group, enhancing clarity and organization. The <fieldset> tag helps users understand the relationship between grouped inputs, improving accessibility.

Using `<fieldset>` correctly is important for creating well-structured forms and enhancing user experience.

Attributes:

disabled, form, name, Global attributes (e.g., class, id, style)

Accessibility:

Coming Soon…

Default fieldset Example:

Using the <fieldset> tag to group form elements.
<fieldset><legend>Personal Information</legend><input type="text"></fieldset>

Default fieldset Result:


Coming Soon…

Community Examples:

Coming Soon…
Coming Soon…