W3C home > Mailing lists > Public > www-validator@w3.org > January 2002

Re: Valid XHTML 1.0

From: Liam Quinn <liam@htmlhelp.com>
Date: Mon, 14 Jan 2002 00:53:23 -0500 (EST)
To: Lars Trieloff <lars@trieloff.net>
cc: <www-validator@w3.org>
Message-ID: <Pine.LNX.4.33L2.0201140051480.13485-100000@localhost.localdomain>
On Thu, 10 Jan 2002, Lars Trieloff wrote:

> I don't know if it was already mentioned in this list, but the html sniplet
> you get after validating al valid xhtml strict file is following:
> ----------
>   <p>
>     <a href="http://validator.w3.org/check/referer"><img
>         src="http://www.w3.org/Icons/valid-xhtml10"
>         alt="Valid XHTML 1.0!" height="31" width="88" /></a>
>   </p>
> ----------
> but this is not valid xhtml strict because <img /> contains the presentation
> attributes height and width.

The "width" and "height" attributes for "img" are valid in XHTML 1.0
Strict:

<!ELEMENT img EMPTY>
<!ATTLIST img
  %attrs;
  src         %URI;          #REQUIRED
  alt         %Text;         #REQUIRED
  longdesc    %URI;          #IMPLIED
  height      %Length;       #IMPLIED
  width       %Length;       #IMPLIED
  usemap      %URI;          #IMPLIED
  ismap       (ismap)        #IMPLIED
  >

> It would be easy to replace this by
> ----------
>   <p>
>     <a href="http://validator.w3.org/check/referer"><img
>         src="http://www.w3.org/Icons/valid-xhtml10"
>         alt="Valid XHTML 1.0!" style="height:31;width:88;" /></a>
>   </p>
> ----------

You're missing the required unit identifiers:
style="height:31px;width:88px;".

-- 
Liam Quinn
Received on Monday, 14 January 2002 00:53:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:00 GMT