Re: missing head tag

by the w3c spec for 4.01
The HEAD element
Start tag: optional, End tag: optional

so Head element is optional

On May 8, 2008, at 4:26 PM, Aniel Bhulai wrote:

>
> Dear Sirs,
>
> We just validated the following source code
>
> ===
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http:// 
> www.w3.org/TR/html4/st
> rict.dtd">
>
> <html lang="en">
>     <title>The current time</title>
> <meta http-equiv="Content-Type" content="text/html;  
> charset=iso-8859-15">
> <body>
>     <h1>My helpful timestamp site</h1>
>     <p>It is now </p>
>
>     <hr>
>     <p>Thanks for visiting my site.</p>
> </body>
> </html>
> ===
>
> As you can see, the source code is missing the head tag. But still  
> the validator.w3.org returns "This Page Is Valid HTML 4.01 Strict!".
> We think that this is a bug or did we miss something?
>
> Best regards,
> Aniel Bhulai
> Otto Schrofer
>
>
>
>
>

Bojan Tesanovic
http://www.carster.us/

Received on Saturday, 10 May 2008 18:32:22 UTC