W3C home > Mailing lists > Public > site-comments@w3.org > January 2011

Re: A problem with the HTML validator

From: Ian Jacobs <ij@w3.org>
Date: Tue, 4 Jan 2011 14:44:08 -0600
To: gordon hill <gordon@freedtochoose.com>
Message-Id: <3BDC6FD6-81D0-4009-8CF5-5CD3700D1B9E@w3.org>
Cc: site-comments@w3.org

On 4 Jan 2011, at 11:02 AM, gordon hill wrote:

> Hi there,
>
> First, I am an amateur.  Even worse I spent forty years as a  
> computer technologist, mainly teaching computer networking at the  
> datagram level, but never coding details.  I am creating a website,  
> freedtochoose.com and, as a matter of personal discipline, am trying  
> to make it HTML 4.01 Transitional compliant.
>
> In working on the page freedtochoose.com/site/about.html I used the  
> coding to display the CSS icon as given at
>
> http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Ffreedtochoose.com%2Fcss%2Ftext.css&profile=css21&usermedium=all&warning=1&lang=en
>
> <h5>
> <a href="http://jigsaw.w3.org/css-validator/check/referer">
> <img style="border:0;width:88px;height:31px"
>           src="http://jigsaw.w3.org/css-validator/images/vcss"
>           alt="Valid CSS!"  />
> </a>
> </h5>
>
> and got a warning.  When I deleted the final "/" the page passed.
>
> This is probably a small deal for savvy HTML writers, but it got  
> me.  The plus is that I am less defensive now and look forward to  
> building a fully compliant website.

Hi Gordon,

HTML 4.01 syntax:    <img>
XHTML syntax:         <img/>

That explains why it validates as HTML 4 when you remove the final  
slash.

  _ Ian

>
> All the best, Gordon Hill, Las Cruces, NM, USA
>
>
>
>
>

--
Ian Jacobs (ij@w3.org)    http://www.w3.org/People/Jacobs/
Tel:                                      +1 718 260 9447
Received on Tuesday, 4 January 2011 20:44:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 24 October 2012 16:21:33 GMT