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.

Top comments (0)

DEV

Thank you.

Β 
Thanks for visiting DEV, we’ve worked really hard to cultivate this great community and would love to have you join us. If you’d like to create an account, you can sign up here.