: The SUMMARY Element
Last updated: 2026-09-12
<summary>The SUMMARY Element
As the first child of details, it is the visible heading the user clicks to toggle the widget.
| Category | Semantic |
|---|---|
| Content Model | Only as first child of details |
| Allowed Parents | Any element that accepts flow content |
| Content Tag | Yes — requires closing </summary> tag |
| Status | Standard |
📝 Syntax
<summary>summary heading</summary>
▶ Example
Edit the code below and see the live result in the playground:
🌐 Browser Support
| Browser | |||||
|---|---|---|---|---|---|
| <summary> | ✓ v1 | ✓ v12 | ✓ v1 | ✓ v1 | ✓ v1 |
| Supported in all major browsers | |||||
Tip: summary must be the first child inside details; without it the browser shows a generic label.
🏷️ Related Tags
💡 Related Cases
More case studies coming soon — check back later.