Skip to main content

HTML Standards: The Summary Tag

SimpleAccess.io Elements Series

Elements Index

The <summary> Element

As defined in the HTML Living Standard, the <summary> element represents a summary, caption, or legend for the rest of the contents of its parent <details> element.

Visual Example:
Click to reveal more information

The summary tag provides the interactive label that users click to expand the details widget.

<details> <summary>Click to reveal more information</summary> <p>The summary tag provides the interactive label...</p> </details> View HTML Living Standard: The summary element

Placement and Rules

The <summary> element has very strict requirements to be semantically valid:

WCAG Requirement: Name, Role, Value

Success Criterion 4.1.2 (Level A): For all user interface components, the name and role can be programmatically determined.

The <summary> element is natively mapped to the "button" role by browsers. This ensures that screen reader users know it is an interactive element. The text inside the summary becomes the "accessible name" of the button, telling the user exactly what will be revealed when activated.

Understand SC 4.1.2: Name, Role, Value

Styling the Summary

While the <summary> is a button, it often looks like a simple piece of text by default.

A11y Tip: Avoid Nested Interactivity

Never place a link or another button inside a <summary> tag. This creates a "nested interactive" situation that is confusing for screen readers and can break keyboard navigation.

© 2026 SimpleAccess.io — Native Standards for Everyone.