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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

adding an alt tag to a link (that's not an image)

Status
Not open for further replies.

fiuPikeOY

Programmer
Jun 14, 2004
143
US
Hello,

Can an alt tag be added to a link that's just text, or even better a TD, or a <p>. How?

Thanks
 
There is no need for alt attribute in those elements. Alt attribute is used for browsers that don't support pictures to display the text instead of the picture. I think you are thinking of a title attribute, the one that gives you a tooltip if you hover over the element with a mouse. Title attribute can be (AFAIK) added to virtually any element in html.
Code:
<a href="[URL unfurl="true"]http://www.google.com"[/URL] title="This is the most popular search engine">Google</a>
<td title="This cell displays the subject's age">27</td>
<p title="Opening paragraph of the new book.">The night was humid...</p>
 
Exactly what I was looking for...

thanks a million.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top