<?xml version="1.0" encoding="utf-8"?>

The <summary> tag

The <summary> element goes in tandem with the <details> tag. It references the heading that users should click or tap to see details. For example, the accordion control represents a stack of collapsed sections. The <summary> tag defines a heading, while the <details> tag specifies the section content that stays invisible until users click it.

Improve your UX & Product skills with interactive courses that actually work