DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Kurapati Mahesh
Kurapati Mahesh

Posted on

HTML: Display tooltip with only HTML

We can build awesome tooltips using CSS and other external libraries but we may not need to build every time.

<p title="This is a tooltip">It is a sample paragraph.</p>

<hr>

<abbr title="World Health Organization">WHO</abbr>
Enter fullscreen mode Exit fullscreen mode

Output:

Image description

Image description

Thanks.

Oldest comments (0)

We want your help! Become a Tag Moderator.
Fill out this survey and help us moderate our community by becoming a tag moderator here at DEV.