W3C home > Mailing lists > Public > www-validator@w3.org > March 2007

Re: Validation being kinda wierd...

From: David Dorward <david@dorward.me.uk>
Date: Thu, 08 Mar 2007 18:48:51 +0000
Message-ID: <45F05A93.7080703@dorward.me.uk>
To: Swivelgames Support <wizandwars@hotmail.com>
CC: www-validator@w3.org

Swivelgames Support wrote:
> Hey, I have recently made 
> 'http://www.swivelgames.com/templates/VistaCMS/index.php' valid, but I 
> was kind of shocked when I found out what I had to do to make it valid.
> 
> If you go there and look at the source, you can see that there is not 
> end </head> tag, nor is there a <body> tag..

See: http://www.cs.tut.fi/~jkorpela/html/empty.html

In HTML this construct:

<link href="./templates/style.css" rel="stylesheet" type="text/css" />

Is equivalent to

<link href="./templates/style.css" rel="stylesheet" 
type="text/css"></head><body>&gt;

(/ terminates the element, > isn't allowed in the head, but the end tag 
for head and start tag for body are optional)



-- 
David Dorward                               <http://dorward.me.uk/>
Received on Thursday, 8 March 2007 18:49:16 GMT

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