HTML Attributes

HTML popovertarget attribute

Build a form with the HTML form generator

Identifies a popover controlled by a button or eligible input button. The target must have the popover attribute; use the ID without #. Applicable elements include: <button>, <input>. Check each element’s value rules.

Formal Syntax & Structure

html syntaxhtml
popovertarget="info"

Parameters & Attributes

NameTypeDescription
popovertargetelement IDIdentifies a popover controlled by a button or eligible input button. The target must have the popover attribute; use the ID without #.

Working Example

Example Snippethtml
<button popovertarget="info">Info</button><div id="info" popover>Extra information.</div>

Browser Compatibility

Minimum supported versions across modern rendering engines

Blink (modern)
Chrome
114
Yes
Gecko
Firefox
125
Yes
WebKit
Safari
17
Yes
Desktop support for popovertarget on input only; other elements, input types, individual values and mobile behavior may differ.
HTML Living Standard
HTML Reference