v142 · dom

Rich Tooltip Gallery

Beyond simple text: interestfor targets a popover element, which can contain any HTML — styled cards, code blocks, stat tables, images with captions, or achievement badges. Hover or focus any trigger to see each variant.

Feature detection: checking…
Note: interestfor is not supported in this browser. The tooltips will not appear on hover — use Chrome 142+ to see them. The popover HTML structure is correct and visible in the source.

Hover or tab-focus each trigger. All popovers are plain HTML targeted by interestfor — no JavaScript for show/hide.

<!-- Plain text tooltip — zero JS -->
<button interestfor="my-tip">Save to drafts</button>
<div popover id="my-tip">
  Saves without publishing. Drafts stay private.
</div>

<!-- Rich card — same attribute, richer content -->
<button interestfor="profile-tip">@paul_kinlan</button>
<div popover id="profile-tip">
  <div class="header">Paul Kinlan</div>
  <div class="body">Developer advocate, Chrome DevRel.</div>
  <div class="footer">joined 2009</div>
</div>

<!-- The interestfor attribute is all you need.
     No JS for open/close/focus/keyboard/touch-delay. -->

see also