Interactive Elements

popover="auto"

Creates a nonmodal popover with light dismissal and automatic closing of unrelated auto popovers. Nested popovers can remain open together; it does not make background content inert. Global attribute; absent means no popover, empty means auto, and invalid values resolve to manual. Popovers are nonmodal top-layer UI.

Formal Syntax & Structure

html syntaxhtml
popover="auto"

Parameters & Attributes

NameTypeDescription
popoverkeywordCreates a nonmodal popover with light dismissal and automatic closing of unrelated auto popovers. Nested popovers can remain open together; it does not make background content inert.

Working Example

Example Snippethtml
<button type="button" popovertarget="note">Toggle note</button><div id="note" popover="auto">  A contextual note.  <button type="button" popovertarget="note" popovertargetaction="hide">Close</button></div>
HTML Reference