views:

38

answers:

3

Is it possible to create a tooltip for an html button. Its the normal HTML button and there is no Title attribute as it is there for some html controls. Any thoughts or comments?

+1  A: 

title is a standard attribute and can be used almost everywhere

See this http://www.w3schools.com/tags/tag_button.asp

skyman
+1  A: 

both <button> tag and <input type="button"> accept a title attribute..

Gaby
A: 

paste this code ( note the title attribute on the button )

<html>
<body>

<button title="you suck">My First Heading</button>

</body>
</html>

here. Works for me--I get a tooltip on my button.

Muad'Dib