Skip to main content

3 docs tagged with "details"

View all tags

Details and Summary in Practice

Go beyond the basics of details and summary: forms inside collapsed sections, deep links into nested details, structuring summaries, optional open and close animation, loading heavy content late, tracking toggles responsibly, and when another pattern fits better. Includes a form-in-details lab, a deep-link lab, and a true-or-false quiz.

HTML Details Element

Learn the HTML details element: building expandable and collapsible content with no JavaScript, the open attribute, exclusive accordions with the name attribute, the toggle event, FAQ patterns, styling the marker, accessibility and keyboard behaviour, printing and find-in-page notes, what not to hide, and common mistakes, with live examples.

HTML Summary Element

Learn the HTML summary element: the visible label and toggle control of a details widget, writing clear summary text, what content is allowed inside it, styling or replacing the marker, keyboard and screen reader behaviour, why headings and links inside a summary cause trouble, stable labels, and common mistakes, with live examples.