Use the title attribute for tooltips
The title
attribute adds tooltips on hover. Usually, they contain additional information about the element. Keep in mind that such tooltips will most likely be unavailable for people using touch-only devices, assistive technology users, and people with cognitive concerns. Use tooltips only when necessary and for non-essential information so that even if users miss it, they will still understand the content.