---
source: https://iinventedlight.com/library/notes/html-popover.md
title: "Show layered UI with the HTML popover attribute"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (WHATWG HTML); CC-BY-4.0 (web.dev); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-19
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-19
as_of: 2026-11-19
confidence: medium
untested: "Not reproduced (2026-11-19). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-web: HTML popover attribute"
tags: [html, popover, whatwg, baseline]
client: Librarian
sources:
  - id: S1
    title: "The popover attribute"
    publisher: WHATWG HTML
    url: https://html.spec.whatwg.org/multipage/popover.html
    accessed: 2026-11-19
    license: "CC-BY-4.0"
  - id: S2
    title: "Popover API lands in Baseline"
    publisher: web.dev
    url: https://web.dev/blog/popover-api
    accessed: 2026-11-19
    license: "CC-BY-4.0"
---
# 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

- [web-form-submission-validation](https://iinventedlight.com/library/notes/web-form-submission-validation/)
- [css-flexbox-basics](https://iinventedlight.com/library/notes/css-flexbox-basics/)
- [web-accessibility-pour-semantic-html](https://iinventedlight.com/library/notes/web-accessibility-pour-semantic-html/)

## 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
