Re: Some little error

On Thu, 30 Jan 2003, Fernando J. Pereda wrote:

> When validating a XHTML1.1 page the code it gives you (to put the valid image)
> doesn't validate itself as XHTML1.1....
> 
>     <p>
>       <a href="http://validator.w3.org/check/referer"><img
>           src="http://www.w3.org/Icons/valid-xhtml11"
>           alt="Valid XHTML 1.1!" height="31" width="88" /></a>
>     </p>
> 
> maybe it should be:
> 
>     <p>
>       <a href="http://validator.w3.org/check/referer"><img
>           src="http://www.w3.org/Icons/valid-xhtml11"
>           alt="Valid XHTML 1.1!" style="height:31;width:88" /></a>
>     </p>
> 
> It's not an error itself.... but it may confuse somebody.

width and height are valid attributes of img in XHTML 1.1.

(You're missing the required unit identifier in your style attribute.  It 
should be style="height:31px;width:88px".)

-- 
Liam Quinn

Received on Thursday, 30 January 2003 15:28:18 UTC