- From: Jens Schwartz <jensschwartz@yahoo.de>
- Date: Fri, 14 Mar 2008 16:45:57 +0100 (CET)
- To: www-validator@w3.org
Hi specialists,
in a document[1] described as
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
as well as
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
the W3C HTML validator[2] accepts the following lines as valid for
strict HTML 4:
<p>
<img alt=" " src="http://www.heise.de/icons/ho/heise.gif"
height="14px" width="32px">
</p>
the W3C HTML 4 document type definition says in[3]
height %Length; #IMPLIED -- override height --
and...
Length defined in strict DTD for cellpadding/cellspacing
ENTITY % Length "CDATA" -- nn for pixels or nn% for percentage length
IMHO, following this definition the height and width attributes don't
contain correct values because of the "px" notation.
Am I right with this, or have I understood something wrong?
another validator[4] recognizes the code above as non-valid.
Best Regards
Jens Schwartz
[1] the checked file was uploaded directly and is not available on the
net atm
[2] http://validator.w3.org/
[3] http://www.w3.org/TR/html401/sgml/dtd.html
[4] http://validator.de.selfhtml.org/
E-Mails jetzt auf Ihrem Handy.
www.yahoo.de/go
Received on Friday, 14 March 2008 15:46:37 UTC