On this page
  1. <fieldset>
  2. Summary
  3. Notes & Best Practices
  4. Example

<fieldset>

Prev: `<select>` | Up: forms | Next: `<datalist>`
Rel: forms, Forms & Inputs Guide
Ref: MDN Web Docs — <fieldset>
Tags: #public #web #html #elements #forms #tier/standard


Summary

Groups related controls (especially radio buttons) with a <legend> caption.

Notes & Best Practices

Example

<fieldset>
  <legend>Notification preference</legend>
  <label><input type="radio" name="notify" value="email" checked /> Email</label>
  <label><input type="radio" name="notify" value="none" /> None</label>
</fieldset>

Linked from

Related notes