Re: height and width in valid icon code (Was: Minor "Problem")

olivier Thereaux wrote:
> On Jun 24, 2005, at 4:42, Chris Ware wrote:
>> The ironic thing is that including this in an XHTML strict document 
>> will actually invalidate it because there are no such tags as height 
>> and width.
> 
> ... I have no strong feeling about having or removing the said 
> attributes in the valid badge code. Does anyone on the list know if this 
> is good/bad practice to have them?

When they're used as meta data to describe to actual height and width of 
the image, they are content and should be included within the markup 
because they help with incremental rendering.  When they are used to 
alter the size of the image upon rendering, that is presentational and 
should be performed with a stylesheet.  Therefore, these attributes 
should stay as is.

-- 
Lachlan Hunt
http://lachy.id.au/

Received on Friday, 24 June 2005 09:24:30 UTC