<fieldset> tag in HTML

The <fieldset> tag used to defines group related elements in an HTML form, defines the <fieldset> tag within <form> tag.

Important Description

  • The <legend> tag defines a caption for the <fieldset> element.
  • Open and close tag required of <fieldset>.

Example of <fieldset> tag

Result Look Like

Student Information: Name of Student:
Email of Student:
Date of birth:

<fieldset> Tag Browser Support

All modern and old browser supports <fieldset> tag, the list of browsers mentioned below:

Element Chrome Edge Firefox Safari Opera
<fieldset> Yes Yes Yes Yes Yes

Global Attributes

Event Attributes

Attributes

There are some standard attributes listed for <fieldset> tag:

Attribute Value Description
disabled disabled Disabled attribute indicates that a group of related form elements must be disabled.
form form_id Form_id attribute defines one or more forms the fieldset belongs to
name text Text attribute defines a name for the fieldset

Email Us: advertise@gdatamart.com

Donate Us: Support to GDATAMART

© 2023 GDATAMART.COM (All Rights Reserved)