Title attribute
The HTML title attribute provides advisory information about an element, which browsers may present as supplementary text such as a tooltip.
Architecting Accessibility
The title attribute is an HTML global attribute that provides advisory text associated with an element.
- How it is used
- Supplies an abbreviation’s expanded form as advisory text that may appear in a browser tooltip.
- How deep it goes
- Describes possible tooltip display and warns that hover access is unreliable.
- Examples
- Shows title="Application Programming Interface" on API and recommends spelling out the expansion in surrounding text.
- What you can do after
- Apply abbreviation expansions in surrounding text rather than relying on hover-only title tooltips.
Read how Architecting Accessibility explains title attribute →
Web Design Playground, Second Edition
The HTML title attribute supplies advisory text that browsers may display as a tooltip for an element.
- How it is used
- Adds optional hover text to images and supplies expansions for abbreviations.
- How deep it goes
- Defines the attribute and demonstrates two uses, but stops short of discussing browser differences or advanced accessibility guidance.
- Examples
- Uses a company-logo image and the abbreviation FOMO to demonstrate hover text and term expansion.
- What you can do after
- Apply it via HTML to add image tooltips and abbreviation expansions.
Read how Web Design Playground, Second Edition explains title attribute →
What to know first
- HTMLHTML is the standard markup language for structuring content and elements in documents on the web.
Related concepts
- abbr elementused by · The HTML abbr element marks text as an abbreviation or acronym and may associate it with an expanded form.
- img elementconfigures · The HTML img element embeds an image resource in a document.
- tooltipproduces · A tooltip is a transient interface label that displays brief contextual information near an associated element during interaction.
- attributekind of · An attribute is a named property or piece of information associated with an entity, object, or structured data item.
- page titlecontrasts with · The HTML title element is document metadata that specifies a page’s title, commonly displayed in browser tabs and other user-agent contexts.
Questions about title attribute
What is title attribute?
The HTML title attribute provides advisory information about an element, which browsers may present as supplementary text such as a tooltip.
Which Manning books explain title attribute?
Architecting Accessibility and Web Design Playground, Second Edition.
What should I know before learning title attribute?
Manning books that teach title attribute usually introduce HTML first.
What is the difference between title attribute and page title?
The HTML title attribute provides advisory information about an element, which browsers may present as supplementary text such as a tooltip. The HTML title element is document metadata that specifies a page’s title, commonly displayed in browser tabs and other user-agent contexts.
What is title attribute a kind of?
Title attribute is a kind of attribute. An attribute is a named property or piece of information associated with an entity, object, or structured data item.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

