Re: error validation

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
http://www.cs.tut.fi/~jkorpela/html/empty.html

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

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/

Received on Sunday, 9 October 2005 05:13:32 UTC