W3C home > Mailing lists > Public > www-validator@w3.org > November 2005

Re: [VE][79] Error Message Feedback

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Sun, 13 Nov 2005 15:22:53 +1100
Message-ID: <4376BF9D.4030502@lachy.id.au>
To: natovr@gmail.com
CC: www-validator@w3.org

Nato van Rooyen wrote:
> [ See Line 15 column 515
> The tag did open, a few columns before it closes. If you always give this
> message, most HTML documents won't be 'valid'.

Most documents aren't valid for many reasons, and the validator isn't to 
blame for any of them.

> My URL:http://www.ivanrooyen.pwp.blueyonder.co.uk/index.html

You have markup like this structure:

<FONT><B>Y</FONT>...<FONT>.co.uk</B></FONT>

HTML must form a tree structure and cannot have overlapping elements 
like that.  Notice how the <b> element is opened within one font 
element, yet closed within another.  That is invalid, every element must 
be opened and closed within the same parent element:

<font>
   <b>
     ...
   </b>
</font>

You should also stop using presentational elements like <font> and <b> 
and avoid the use of the style attribute in favour of an external 
stylesheet.

-- 
Lachlan Hunt
http://lachy.id.au/
Received on Sunday, 13 November 2005 04:23:09 GMT

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