David Dorward wrote:
Thu, Aug 10, 2006 at 02:18:20AM -0700, J. Greenlees wrote:
>Non Valid code in xml docuents with css:
>>
><p>
><a href=""><img
>src=""
>alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a>
></p>
If I understand your argument correctly:
The validity of some markup is dependent on the DTD specified in the
Doctype, not the use (or otherwise) or a stylesheet.
The height and width attributes exist for all published versions of
XHTML, including Strict variants. Arguably, they belong there as they
describe the image rather then define its presentation (at least so
long as you use them to specify the actual pixel dimensions of the
image).
Except that when validating against the XHTML Strict DTD the image width
and height attributes cause a failed validation, since they are
not included in the DTD attribute list for images.
by putting them into a style statement the error goes away.