W3C home > Mailing lists > Public > www-validator@w3.org > May 2004

Re: Head element reported not open, but it is

From: David Dorward <david@dorward.me.uk>
Date: Tue, 25 May 2004 10:45:53 +0100
Message-Id: <502975A5-AE30-11D8-9AD5-000A957E4F00@dorward.me.uk>
Cc: www-validator@w3.org
To: Tomas Brunclik <tbrunclik@post.cz>

On 25 May 2004, at 08:48, Tomas Brunclik wrote:
> In this validation result:

> The Validator found an end tag for the above element, but that element 
> is not currently open. This is often caused by a leftover end tag from 
> an element that was removed during editing, or by an implicitly closed 
> element (if you have an error related to an element beeing used where 
> it is not allowed, this is almost certainly the case). In the latter 
> case this error will disappear as soon as you fix the original 
> problem.
> ****************
> seems not to be true - the HEAD element *is* open and no errror 
> related to "use where not allowed" for *this* element is stated. Well, 
> the document validated is very buggy, but still, this message 2 is 
> either wrong, or some other message is missing (IMHO).

No error is missing. You have an implicitly closed element (as the 
error message says).

You have:
     <link href="sys_Styles.css" rel="stylesheet" />
But / means something different in XHTML and HTML. So what you have is 
the same as:
     <link href="sys_Styles.css" rel="stylesheet">&gr;
But &gt; can't go in the <head>, do this means the same as:
     <link href="sys_Styles.css" rel="stylesheet"></head><body>&gr;

David Dorward
Received on Tuesday, 25 May 2004 05:45:46 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:41 UTC