prezbedard
06-24-2002, 07:50 PM
Does anybody know why the image alt
property doesn't work in NS6?
Thanks
property doesn't work in NS6?
Thanks
|
||||
NS6 image alt propertyprezbedard 06-24-2002, 07:50 PM Does anybody know why the image alt property doesn't work in NS6? Thanks QuackHead 06-24-2002, 07:56 PM Cause Netscape is trash.... oh wait, sorry, that wasn't the technical answer... Actually I dont' know why either... if anyone does, I'd like to know too! ~Quack prezbedard 06-24-2002, 08:00 PM I do know it works in Mozillla. But what average web user is going to know that? or even care to download it. Or even heard of it. Now tell me that one. :) jkd 06-24-2002, 08:19 PM How about, because it isn't supposed to, and the widely known use of it is in fact, INCORRECT? The alt property specifies alternate text to display in place of the image if: 1. The image cannot be displayed 2. The browser does not support images The proper way to get the "tooltip" popup is to the use the "title" property. :) <img src="logo.gif" width="468" height="60" alt="Site logo" title="Welcome to Something.com!"/> Is an example of what the <img/> tag is supposed to be like. QuackHead 06-24-2002, 08:24 PM Does title work in NS4? jkd 06-24-2002, 08:58 PM No. The current workaround is either ignore old browsers, or set the alt and title attributes to be the same, though that could be killer for accessibility concerns. Roy Sinclair 06-24-2002, 09:55 PM Gecko based browser (of which Netscape is only one) use the title property which is the correct property for this use as defined by the W3C. IE 4+ will also use the title property when present but also support the use of alt (title when present takes precedence over alt). Netscape 4 requires the use of alt for such text. Kang He 06-24-2002, 10:17 PM ALT's are still a required attribute for valid XHTML, right? (been out of this for a while :P) Roy Sinclair 06-24-2002, 10:33 PM Originally posted by Kang He ALT's are still a required attribute for valid XHTML, right? (been out of this for a while :P) alts' are required for disability compliance. Their purpose is to provide alternative information for someone who can't see a visual element like an image. jkd 06-24-2002, 11:13 PM In other words, alt is a required attribute of an HTMLImageElement. :) |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum