Adding the title attribute
The title
is a global attribute with a downright misleading name. Instead of adding a title, it provides extra information about an element. It takes the form of a tooltip that appears when the mouse hovers over an element. Tooltips are highly contextual and specific. Add them to elements like icons, text links, buttons, etc., to provide extra information about the element.