Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- display with height and width attributes
July 29, 2005, 3:33 am
rate this thread
Re: display with height and width attributes
Jim Moe wrote:
The spec says (section 13.2), "The alt attribute specifies alternate
text that is rendered when the image cannot be displayed (see below for
information on how to specify alternate text ). 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."
"Please consult the section on the visual presentation of objects,
images, and applets for information about image size, alignment, and
And that section (13.7) says, "When specified, the width and height
attributes tell user agents to override the natural image or object size
in favor of these values."
So it's a question of whether rendering alternate text supersedes or
replaces the overriding of natural image size (which is unknown in the
case you describe) by the height and width parameters.
If all of the ambiguities in the HTML specs were laid end to end....
Chris Beall, who prefers the Mozilla interpretation.
- » Table width is broken when using back button in Internet Explorer
- — Previous thread in » HTML Authoring Forum