W3C home > Mailing lists > Public > www-validator@w3.org > October 2001

I would like to point this out

From: David Wright <dwright5@nyc.rr.com>
Date: Wed, 24 Oct 2001 00:37:13 -0400 (EDT)
To: <www-validator@w3.org>
Message-ID: <B7FBBEAA.73%dwright5@nyc.rr.com>
Hello,

I am trying to validate a file (by uploading). Transitional 4.01
i have eliminated all error except this one any ideas?

 1: 
   2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   3:         "http://www.w3.org/TR/html4/loose.dtd">
   4: <html>
   5: <head>
   6: <title>David Wright - Webmaster - Producer - Deveoper</title>
   7: <style type="text/css">
   8: <!--
   9: .textTable
  10:     {
  11:     margin-left:    20px;
  12:     margin-top:    20px;
  13:     margin-right:    20px;
  14:     margin-bottom:    10px;
  15:     }
  16: //-->
  17: </style>
  18: <link rel="stylesheet" type="text/css" href="css/external.css" />
  19: </head>
  20: 
  21: <body>
  22: <!--THIS IS THE HEADER TABLE (LOGO)-->
  23: <table width="100%" border="0" style="background-color:
'#ffffff';border:'1px solid #000000'">


the error i receive is
  </head>
        ^

Error: end tag for element "HEAD" which is not open; try removing the end
tag or check for improper nesting of elements
*    Line 21, column 5:

  <body>
       ^

Error: element "BODY" not allowed here; check which elements this element
may be contained within


When i eliminate these elements (</head><body>) my document validates and
oddly enough continues to be visible through a browser. Why is this? Thank
you for a great service.

Sincerely,

David Wright
Received on Thursday, 25 October 2001 03:29:13 GMT

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