The HTML <fieldset> tag is used for grouping related form elements.

By using the <fieldset> tag and the <##_legend_##> tag, you can make your forms much easier to understand for your users. You can also do things like, disable all child elements within a <fieldset>.

Required Attributes

  • None.

Optional Attributes

Example

<fieldset>
	<legend> Address </legend>
	<label>Address Line 1</label>
	<input name="adressLine1" />
</fieldset>

Changes in HTML5

  • None.

Related Tags