HTML · Global attributes

title (attribute)

Advisory information shown as a tooltip. Do not put required instructions here because touch users never see it.

Syntax
title="…"

Example

Try it

Notes

For important information, render visible text instead of a tooltip.

More in this group

accesskey aria-atomic aria-controls aria-current aria-describedby aria-disabled aria-expanded aria-hidden

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course