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

Re: error validation

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Sun, 9 Oct 2005 08:13:23 +0300 (EEST)
To: Alexander <chizh@irk.ru>
Cc: www-validator@w3.org
Message-ID: <Pine.GSO.4.63.0510090807190.18965@korppi.cs.tut.fi>

On Sat, 8 Oct 2005, Alexander wrote:

>  http://cooler.irk.ru
>  ....
>  ...
> 5 ERROR:
>   Line 28 column 6: end tag for element "HEAD" which is not open.
>  ! but open tag '<HEAD>' are present in HTML source!

The tag is there, but the element was closed already, by the
greater than character ">" as data at

<link rel="stylesheet" type="text/css" media="screen" href="css/main.css" 

The "/" character before the ">" closes the link tag, and therefore
the ">" is outside tags. It hence belongs to the document body, so the
head element is implicitly closed, and the body element implicitly opened.

Confused? You will be, if you mix XHTML and classic HTML in the same 
document, by using an XHTML-style "self-closing tag" in a document 
declared to be HTML 4.01. For a lengthy explanation, see

Just remove the "/" from the "/>".

Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Sunday, 9 October 2005 05:13:32 GMT

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