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.

Latest comments (0)

Create an Account!

πŸ‘€ Just want to lurk?

That's fine, you can still create an account and turn on features like 🌚 dark mode.