inert content
Markup the browser has parsed but deliberately keeps dormant: nothing inside is displayed, fetched or executed.
In more detail
Template content is inert until cloned into the live DOM. Separately, the inert HTML attribute makes a part of a live page ignore clicks, focus and assistive technology, which native modal dialogs apply to the page behind them.
Related terms
- template element — An HTML element whose contents are parsed but not rendered or run, kept as a reusable blueprint that scripts copy into the page.
- dialog element — The native HTML element for dialogs; opened with showModal() it becomes an accessible modal with a backdrop and focus containment.
Taught in
- DOM Manipulation: DocumentFragment And HTML Templates — Frontend Architecture & Web Platform
- Pointer Events, Focus Trapping And Keyboard Accessibility — Frontend Architecture & Web Platform