Attribute references

european bob bob at wolfwall.com
Mon Jan 10 14:11:46 EST 2005


On Mon, 2005-01-10 at 13:49 -0500, John Gruber wrote:
> Well, you could just specify the image dimensions in the style
> attribute using CSS, but to me that makes less sense than using the
> height and width attributes.

Hehe, that would get you taken out and shot come the semantic HTML
revolution ;)

> I mean, the <img> tag does have 'height' and 'width' attributes, and
> that's exactly what they're for. It's not presentation information,
> it's meta data about the image specified by the tag.

Actually, it's not. HTML 4.01, #13.7.1 - deprecated in favour of
stylesheets. It's purely presentational.

Since the standard says you scale the image, clearly it's not semantic
about the image or meta data about the image - it's "I want this image
to be this big", i.e., semantic about the presentation. That includes
width/height, [vh]space, border, align, but not alt (which *is* semantic
about the image).

--bob.



More information about the Markdown-Discuss mailing list