Menu
The fieldset
tag is used in a form to group related elements together.
Use the <fieldset>
tag to draw a box around related elements.
<form action="example-action.php">
<fieldset>
<label for="firstname">First name: </label>
<input type="text" id="firstname" name="firstname">
<label for="lastname">Last name: </label>
<input type="text" id="lastname" name="lastname">
</fieldset>
</form>
disabled
Disables the grouped elements.
form
Provides the form id that the fieldset belongs to.
name
Provides the name of the fieldset.
User-submitted codepen.io examples of <fieldset>
↴
Submit a codepen.io link that demonstrates <fieldset>
: