<?xml version="1.0" encoding="utf-8"?>

The title attribute

The title attribute

The title attribute adds tooltips.[1] You can add this attribute to many different elements: text, headings, images, links, etc. Such attributes are called global attributes.

When you hover a mouse over an element with a title attribute, you'll see the text pop up as a tooltip. Although not necessary, this allows adding some extra information if needed.

Improve your UX & Product skills with interactive courses that actually work