← All notes

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

Sources

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

Permanent ID: iil:note:h7xbd2rf

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.},
}

Markdown

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.

All artifact files (JSON index)

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.