Name

fieldset

Type

fieldset

Synopsis

How to group certain inputfields together

Description

A fieldset can visually group certain form elements together. In other word you can group questions related to each other.

A fieldset is useally used in combination with legend, but not necessary.

Parameters

_fieldset

Can hold all styling HTML5 arguments. It also has a form tag that refers to the form's id when a fieldset is not nested within a form.

You can also disable a fieldset, essentially disabling all input fields inside a fieldset.

Example

<form action="get">
  <fieldset>
    <legend>Simple fieldset</_legend>
    <input type="radio" id="radio" /><label for="radio">Spirit of radio</label>
  </fieldset>
</form>


Note

Links

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset