HTML <fieldset> tag
HTML <fieldset> 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 <filedset>, it is easy to understand the purpose of grouped elements of form.
The <legend> tag is used with the <fieldset> element as a first child to define the caption for the grouped related fields.
Following are some specifications about the HTML <fieldset> tag
Example 1Test it Now
= New in HTML5.
HTML < fieldset > tag supports the global attributes in HTML
HTML < fieldset > tag supports the event attributes in HTML.