Skip to main content

Harshal V. LADHE

The HTML <details> Element

Native disclosure widgets and accordions with `<details>` and `<summary>`: markers, exclusive groups and `::details-content` animations.

Content tagged details-element

  • Tutorial:The :open Pseudo-Class for <details>, <dialog> and <select>

    Style anything that opens, selects included, with one pseudo-class.
    Style the open state of <details>, <dialog> and <select> with the CSS :open pseudo-class. Compare it with [open], :popover-open and :modal, with fallbacks.
    Published at:
    Categories:CSS
    Estimated reading time:11 min read