Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do i use the alt tag with and input field?

Status
Not open for further replies.

Haraldo

Programmer
Jun 9, 2003
41
GB
I'm trying to use the ALT attribute with an INPUT field but no text appears. How can i make this happen??

Thanks,
 
Just as an FYI...

The "title" attribute is used to give a meaningful description to content, and most browsers will show this description when the element is hovered over.

The "alt" attribute is used to give a brief description of what an image shows, and is intended to be displayed when that image is missing, or by browsers that do not support (or have been told not to load) images.

MS decided that for images with no title attribute, to display the alt attribute instead. This caused many people (yourself included), to mistakenly think that the alt attribute was the correct one for "tooltips" - which is not correct.

Hope this clarifies things.

Dan


[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top