Re: alt text



Scripsit Harlan Messinger:

"User agents must render alternate text when they cannot support
images, they cannot support a certain image type or when they are
configured not to display images."

http://www.w3.org/TR/html4/struct/objects.html#h-13.2

None of these is the case. That's not to say that the browsers
couldn't handle the case of a missing file in the same way, but the
spec doesn't call for it.

It does. You missed a simple statement in the section you quoted, right before the part you quoted:

"The alt attribute specifies alternate text that is rendered when the
image cannot be displayed".

However: are you setting width and height for your images? If so, are
you sure that the ALT text isn't just being cut off because the
"missing image" icon isn't already filling up the space you made
available?

I still haven't seen a decent problem description, so I refrain from commenting on the unknown problem.

However, at the general level, relating to the above suggestion on solving an unknown problem: It's an age-old problem that some browsers use the image dimensions, if specified explicitly, to determine the box size, so that if the alt text doesn't fit, it's truncated. So for years, it's been a common recommendation not to specify width and height for small images with nonempty alt text.

This used to be typical of IE, and in this sad, sick world of bug-compatible browsers, I wouldn't be surprised if Firefox started imitating such a "feature".

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

.



Relevant Pages

  • Re: alt text
    ... images, they cannot support a certain image type or when they are ... "The alt attribute specifies alternate text that is rendered when the ... display alt text for missing images overlapped all on one line. ...
    (alt.html)
  • Re: Alt Plus codes
    ... them may not display on your computer - or may not display in all fonts. ... You can use Alt + any number which is the decimal equivalent of a unicode ... not have fixed characters - the various symbols in the Symbol, Wingdings, ... Microsoft Word MVP ...
    (microsoft.public.word.docmanagement)
  • Re: ALT+F9 doesnt work 100%
    ... Microsoft MVP (Word) ... but this did not turn off all field codes. ... code/brackets still display. ... Alt F9 turns off only about 50% of the field ...
    (microsoft.public.word.application.errors)
  • Re: alt tag
    ... the alt text (describing what you see for those who do not want to load ... Most browsers don't display alt text when the mouse is pointing at images. ...
    (alt.html)
  • Re: de keyboard navigation indicators until I use the Alt key
    ... > of the "Hide keyboard navigation indicators until I use the Alt ... > key" display ... > I had updated the registry entry ...
    (microsoft.public.win2000.general)