title
The title global attribute provides advisory information shown as a tooltip on hover.
Syntax
title="advisory text" Examples
<button title="Save your changes (Ctrl+S)">Save</button>
<abbr title="World Health Organization">WHO</abbr>
Output
Renders a button and an abbreviation that each show a tooltip on mouse hover.
Notes
Tooltips are not reliably accessible to keyboard or touch users and are not announced consistently by screen readers. Do not put essential information only in title; prefer visible text or aria-label.
Browser & runtime support
| Environment | Since version |
|---|---|
| chrome | 1.0 |
| firefox | 1.0 |
| safari | 1.0 |
| edge | 12 |