Re: Head element reported not open, but it is

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
      <http://dorward.me.uk/>
<http://blog.dorward.me.uk/>

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