Last updated: 2026-09-12
<legend>The LEGEND Element
Provides a visible caption for a fieldset; must be its first child.
| Category | Forms |
|---|---|
| Content Model | Flow content |
| Allowed Parents | Any element that accepts flow content |
| Content Tag | Yes — requires closing </legend> tag |
| Status | Standard |
📝 Syntax
<legend>Group title</legend>
▶ Example
Edit the code below and see the live result in the playground:
🌐 Browser Support
| Browser | |||||
|---|---|---|---|---|---|
| <legend> | ✓ v1 | ✓ v12 | ✓ v1 | ✓ v1 | ✓ v1 |
| Supported in all major browsers | |||||
Tip: legend only appears inside fieldset, usually as the first child.
🏷️ Related Tags
💡 Related Cases
More case studies coming soon — check back later.