Global Attributes
HTML popover attribute
Creates a native popover target. auto supports light dismissal; manual requires explicit dismissal; hint has specialized stacking behavior. It is not modal and does not automatically make background content inert. Applicability: global HTML attribute, subject to element-specific restrictions and browser support. An empty popover value selects auto; an invalid value selects manual. The attribute establishes a target but does not show it by itself. Use a target button or the Popover API; an accessible name and suitable semantics still depend on the content.
Formal Syntax & Structure
html syntaxhtml
popover="auto"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| popover | enumerated: empty, auto, manual, hint | Empty means auto; invalid values select manual. These values control dismissal and stacking, not modal behavior. |
Working Example
Example Snippethtml
<button popovertarget="tips">Tips</button><div id="tips" popover="auto">Use short labels.</div>Browser Compatibility
Minimum supported versions across modern rendering engines
Chrome
114
Yes
Firefox
125
Yes
Safari
17
Yes
Checked desktop BCD snapshot: global popover attribute. Versions denote the recorded start of support (≤ means at least that early), not a guarantee of all behavior. Unresolved mirror and preview rows omitted. Base attribute only, not every state or dismissal behavior.
HTML Living Standard