Chris Burnell writes about the increasing ability of HTML to perform dynamic functions that were previously dependent on JavaScript. He highlights several modern features, such as popovers, dialog elements, and grouped details accordions, which allow for complex user interface behaviors directly through native browser attributes.
- The `popover` attribute manages light dismissals (Esc key) and top-layer positioning without extra scripting or z-index management.
- A shared `name` attribute on `<details>` elements creates a native accordion effect where opening one item closes others in the same group.
- New "invoker commands" like `command="show-popover"` allow buttons to control popovers and dialogs without JavaScript.
- The `hidden="until-found"` attribute allows content to be hidden but automatically revealed when a user searches for it using browser default search functions.
- While HTML offers many native components like `<datalist>` or `<meter>`, the author cautions that accessibility support and styling consistency vary significantly across browsers.
This article explores replacing JavaScript functionality with native HTML and CSS for improved performance and reduced resource usage, focusing on accordions, autofilter inputs, modals, and offscreen navigation.