Re: Valid XHTML 1.0

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 UTC