0

Many websites have a feature that when some box or image or any element is hovered and place on it for some time just below the cursor a text is shown (describes or tell that what that item is) . how can we make one like that ?

As I am new to web development I do not know whether its related to CSS or not . If yes I want a small explanation and code along demo image (if possible for the output) . Thank you .

1 Answers1

3

I think you are talking about tooltip You can do it with the title attribute or build your custom tooltip. You can hover over this test button:

<button title='This is a test button'>Test button</button>
Maziar Rumiani
  • 641
  • 1
  • 4
  • 11