Apr 27, 2005 #1 TheConeHead Programmer Joined Aug 14, 2002 Messages 2,106 Location US how can I make alt text for text?
Apr 27, 2005 1 #2 manarth Programmer Joined Jul 2, 1999 Messages 1,705 Location GB Do you mean a tooltip? If so, be wary of using the alt attribute for tooltips in any instance: MS IE is the only browser to show the alt as a tooltip. The proper attribute for a tooltip is title: Code: <span [highlight]title="INTELLIGENT WORK FORUMS FOR COMPUTER PROFESSIONALS"[/highlight]>Tek Tips</span> This is also appropriate for giving tooltips to images: Code: <img src="something.jpg" alt="alternative for text only browsers" title="tooltip" /> If you want an alt tag on an image, but do not feel it needs a tooltip, you can use a null title to suppress the tooltip in IE: Code: <img src="something.jpg" alt="alternative for text only browsers" title="" /> As alt is a required attribute of img in XHTML, this is likely to become increasingly common. <marc> Upvote 0 Downvote
Do you mean a tooltip? If so, be wary of using the alt attribute for tooltips in any instance: MS IE is the only browser to show the alt as a tooltip. The proper attribute for a tooltip is title: Code: <span [highlight]title="INTELLIGENT WORK FORUMS FOR COMPUTER PROFESSIONALS"[/highlight]>Tek Tips</span> This is also appropriate for giving tooltips to images: Code: <img src="something.jpg" alt="alternative for text only browsers" title="tooltip" /> If you want an alt tag on an image, but do not feel it needs a tooltip, you can use a null title to suppress the tooltip in IE: Code: <img src="something.jpg" alt="alternative for text only browsers" title="" /> As alt is a required attribute of img in XHTML, this is likely to become increasingly common. <marc>