W3C home > Mailing lists > Public > www-validator@w3.org > August 2009

Re: Error validating <head> element

From: Michael Adams <linux_mike@paradise.net.nz>
Date: Mon, 17 Aug 2009 21:41:31 +1200
To: www-validator@w3.org
Message-id: <20090817214131.435d7238.linux_mike@paradise.net.nz>
On Sun, 16 Aug 2009 13:36:02 -0700
Came this utterance formulated by Jim Haungs to my mailbox:

> The following simple file, gives the error below when validating by  
> direct input.  Clearly the <head> is properly terminated.
> 
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd ">
> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
> 
> <head>
> </head>
> 
> <body>
> </body>
> 
> </html>
> 
> 
> 
> Line 5, Column 7: end tag for "head" which is not finished
> </head>
> (The closing angle bracket here is displayed in red.)
> 
> 

A minimum docoment requires at least a title element, so the error is
correct if a little misleading. The head element is not finished.

http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_head
[quote]... Exactly one title is required per document.[/quote]

A minimum conforming document is given here:
http://www.w3.org/TR/xhtml1/#strict
and discussed here:
http://tantek.com/XHTML/Test/minimal.html

-- 
Michael

All shall be well, and all shall be well, and all manner of things shall
be well

 - Julian of Norwich 1342 - 1416
Received on Monday, 17 August 2009 09:36:20 GMT

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