Widely availableSupported across all major browsers. Safe to use in production.

Overview

The title global HTML attribute sets information about an element, such as a name or description. The value is typically shown as a tooltip that appears on mouse over. Since it's not often available to touch-only, keyboard-only, or assistive technology users, it's not a substitute for other text.

Browser support

Feature Desktop Mobile
Chrome
Edge
Firefox
Safari
Chrome Android
Safari iOS
1
12
1
≤4
18
≤3.2
DOM API

The HTMLElement.title property represents the title of the element: the text usually displayed in a 'tooltip' popup when the mouse is over the node.

1
12
1
3
18
1
Other
html.global_attributes.title.multi-line_titles

Multi-line titles

≤64
12
≤58
≤11
≤64
≤11
1+Supported (version) Not supported Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)

Syntax

HTML
<p title="これはツールチップです">Please hover over</p>
<abbr title="HyperText Markup Language">HTML</abbr>

Live demo

tooltip. Display

Title attribute in mousehover time to adbaizariinfo display.

PreviewFullscreen

formelement. auxdescription

Inputhint provide. with formcontro-l to title.

PreviewFullscreen

title Key Considerations

Title attribute. akseshirititop. and alternativestage.

PreviewFullscreen

Use cases

  • Using title (attribute)

    The title global HTML attribute sets information about an element, such as a name or description. The value is typically shown as a tooltip that appears on mouse over. Since it's not often available to touch-only, keyboard-only, or assistive technology users, it's not a substitute for other text.

Cautions

  • May not be supported in older browsers.

Accessibility

  • Verify how this element is announced by screen readers.

Powered by web-features