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

<noscript> not allowed in head ?

From: George Herson <gherson@snet.net>
Date: Sun, 19 Oct 2003 23:58:33 -0400
Message-ID: <1066622313.ae2402651c130@webmail.spamcop.net>
To: www-validator@w3.org

http://validator.w3.org/ was returning:



This page is not Valid HTML 4.01 Transitional!

Below are the results of attempting to parse this document with an SGML parser.

   1. Line 6, column 22: document type does not allow element "STYLE" here
(explain...).

  <style type="text/css">
                        ^

   2. Line 15, column 6: end tag for element "HEAD" which is not open (explain...).

  </head><body bgcolor="#000000" text="#f70000" link="yellow" vlink="white"><a hre
        ^


until i removed:

<noscript>Your JavaScript is turned off.  This may cause problems with the
shopping cart.</noscript>

from my web page's head section (which is shown in full, below).


It appears, then, that <noscript> isn't allowed in the head section (or maybe
it's me or the Validator in error?).  If so, I think this should this be
mentioned on http://www.w3.org/TR/html4/interact/scripts.html#edef-NOSCRIPT.


Top of the web page in question:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>Products</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript" src="page_loader.js"></script>
<noscript>Your JavaScript is turned off.  This may cause problems with the
shopping cart.</noscript>
<style type="text/css">
<!--
  A:link {text-decoration: none ; color: #cacaaa}
  A:visited {text-decoration: none ; color: #00aaff}
  A:active {text-decoration: none ; color: #0000ff}
  A:hover {text-decoration: none ; color: #000000 ; background-color: #cacaaa}
  BODY {margin: 0}
-->
</style>
</head>
<body bgcolor="#000000" text="#f70000" link="yellow" vlink="white">
. . .

regards,
george
(any replies pls cc: gherson@snet.net because i'm not subscribed. thx.)
Received on Monday, 20 October 2003 00:04:25 GMT

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