gg2

HTML capabilities showcase

Archived — this story has rotated out of today’s deck. It is kept here in full.

The gist

HTML now handles dialogs, popovers, accordions, and pickers without JavaScript. Developers can build dynamic interfaces with pure markup, reducing reliance on JS.

Background

HTML has evolved to include native interactive elements like dialogs, popovers, and accordions, which previously required JavaScript. This shift simplifies web development and improves performance and accessibility.

How it unfolded

  1. Mar 2017Native input pickers for color, range, and date become available in browsers.
  2. Mar 2022The dialog element gains support for show-modal and commandfor attributes.
  3. Jan 2025Popover API becomes widely supported, enabling lightweight overlays.
  4. Sep 2025Details elements with shared name attribute create exclusive accordions.
  5. Dec 2025Command and commandfor attributes expand to control popovers and dialogs.

Who’s saying what

Developer
This reduces the need for JavaScript, making code simpler and more maintainable.
Skeptic
Browser support varies, and some features are still limited, so JavaScript may still be needed for complex interactions.

Sources

See today’s stories in the app gg2 — free on the App Store