HTML <fieldset> Tag
<fieldset>
<p><label>First Name: <input name="fName"></label>
<p><label>Surname: <input name="sName"></label>
<p><label>Preferred Name: <input name="pName"></label>
</fieldset>
<fieldset>
<p><label><input type="radio" name="gender" value="male"> Male</label>
<p><label><input type="radio" name="gender" value="female"> Female</label>
</fieldset>
The above example demonstrates usage of the <fieldset>
element.
The <fieldset>
element is used for used for grouping related form elements in an HTML document. It is particularly useful when used with the <legend>
element in order to make forms more readable.