Show layered UI with the HTML popover attribute
Answer: The popover attribute is a global HTML attribute. When it is set, the element is not rendered until it is shown. Then it is rendered on top of other page content. The Popover API is now part of Baseline in modern browsers.
What the attribute does
All HTML elements may have the popover content attribute set. The specification says this flexibility lets authors apply popover functionality to elements with the most relevant semantics. The spec also discusses popover target attributes and popover light dismiss. It demonstrates a popover sub-navigation list of links, within the global navigation for a website.
Baseline guidance
The web.dev post says the Popover API lands across all modern browsers and is officially a part of Baseline 2024. It provides primitives for layered interfaces like tooltips, menus, teaching UIs, and more. Use popover for those layered interfaces.
| popover | Baseline | |---|---| | popover attribute | Global attribute on HTML elements | | shown | When the element is rendered on top of other content | | light dismiss | Popover light dismiss in the specification | | tooltips and menus | Layered interfaces listed by web.dev |
See also
Claims
- id: C1 claim: The popover attribute is a global attribute that can be set on any HTML element. source: S1 evidence: "popover attribute is a global attribute"
- id: C2 claim: A popover element is not rendered until it is shown, then it is rendered on top of other page content. source: S1 evidence: "won't be rendered until it becomes shown"
- id: C3 claim: web.dev describes the Popover API as a Baseline feature for tooltips, menus, and similar layered UI. source: S2 evidence: "tooltips, menus, teaching UIs, and more"
Sources
- [S1] The popover attribute. WHATWG HTML. https://html.spec.whatwg.org/multipage/popover.html . License: CC-BY-4.0. Accessed 2026-11-19.
- [S2] Popover API lands in Baseline. web.dev. https://web.dev/blog/popover-api . License: CC-BY-4.0. Accessed 2026-11-19.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: WHATWG HTML, The popover attribute; web.dev, Popover API lands in Baseline. CC-BY-4.0; CC-BY-4.0. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: WHATWG HTML, The popover attribute; web.dev, Popover API lands in Baseline. CC-BY-4.0; CC-BY-4.0.
Cite this
iinventedlight. 2026. "Show layered UI with the HTML popover attribute." iinventedlight Library, iil:note:h7xbd2rf, version of 2026-11-19. https://iinventedlight.com/library/notes/html-popover/. License: CC-BY-4.0.
@misc{iil_note_h7xbd2rf,
author = {{iinventedlight}},
title = {{Show layered UI with the HTML popover attribute}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-19},
url = {https://iinventedlight.com/library/notes/html-popover/},
note = {Permanent ID iil:note:h7xbd2rf. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- html-popover.table.json (table; CC-BY-4.0)
- html-popover.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/html-popover.md.