<a title=””> HTML Attribute

Sharing is caring!

Attribute of
<a> HTML Tag
What does <a title=""> HTML Attribute do?
Defines the title of a link, which appears to the user as a tooltip.

Code Example

<a href="/" title="HOME - HTML Code Tutorials">Click to visit home page.</a>

The text of the title attribute is displayed as a tooltip in most browsers — it appears in a small bubble when the cursor hovers over the link. Originally, this was intended to be used to indicate the title of the linked document. This is still a good practice, but you may use it for any text which you think will be helpful to the user.

Values of the title Attribute

Value NameNotes
textThe title of the link. Displays as a tooltip.

All Attributes of the anchor Element

Attribute nameValuesNotes
hreflangSpecifies the language of the linked resource.
downloadDirects the browser to download the linked resource rather than opening it.
frame name
Specifies the context in which the linked resource will open.
titletextDefines the title of a link, which appears to the user as a tooltip.
hrefurlSpecifies the linked document, resource, or location.
Adam is a technical writer who specializes in developer documentation and tutorials.

Browser Support for title