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)