HTML - FieldSet element

About

fieldSet is an HTML element that groups element in a form

Structure

A fieldset:

  • may have a legend
  • can also be nested ( fieldset inside fieldset)

Example

<fieldset >
<legend> Pizza Size </legend>
<p><label> <input type=radio name=size required value="small"> Small </label></p>
<p><label> <input type=radio name=size required value="medium"> Medium </label></p>
<p><label> <input type=radio name=size required value="large"> Large </label></p>
</fieldset>

Documentation / Reference


Powered by ComboStrap