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

Re: Validator Error (I think)

From: David Dorward <david@dorward.me.uk>
Date: Fri, 7 May 2004 13:51:16 +0100
Message-Id: <3A8E2784-A025-11D8-8DCB-000A957E4F00@dorward.me.uk>
Cc: <www-validator@w3.org>
To: "Darren Candler" <darren@southbank-design.co.uk>

On 7 May 2004, at 13:08, Darren Candler wrote:
> I have  the following code on my page and when uploaded into the 
> validator
> and it is throwing an error on the end head tag
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
> <link href="style.css" rel="stylesheet" type="text/css" media="all" />
> </head>

The error message is:
   Line 7, column 6: end tag for "head" which is not finished

The explanation says:
    Another possibility is that you used an element (e.g. 'ul') which 
requires a child element (e.g. 'li') that you did not include. Hence 
the parent element is "not finished", not complete.

The HTML specification says:
   <!ELEMENT HEAD O O (%head.content;) +(%head.misc;) -- document head 
   The TITLE element is not considered part of the flow of text.
   It should be displayed, for example as the page header or
   window title. Exactly one title is required per document.

You don't have a <title>, but it is required.

This is not an error with the validator.

David Dorward
Received on Friday, 7 May 2004 08:51:34 UTC

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