- From: Manuel Bieh <mailinglist@manuelbieh.de>
- Date: Mon, 21 Nov 2011 12:18:39 +0100
- To: public-html-comments@w3.org
Seen from an XML perspective: attributes contain meta information about the element they're used on. So width and height should describe the _actual_ width and height of the image file defined in the <img> element's src attribut. That's markup. CSS is used for styling your markup and thus you should use CSS' width and height properties to define how big your image should be displayed in your document. That's probably the reason the HTML width/height attributes are being ignored when specifying a different size in CSS although width/height attributes are "inline". By defining width=3D"75%" in your markup you would give up the separation of content and layout information.
Received on Monday, 21 November 2011 17:53:51 UTC