W3C home > Mailing lists > Public > www-validator@w3.org > February 2000

Re: Problem with JavaScript and CSS

From: Keith Bowes <keith_bowes@hotmail.com>
Date: Fri, 11 Feb 2000 15:43:24 -0500
Message-ID: <20000211204436.70458.qmail@hotmail.com>
To: "Stieler" <stieler@mail.desy.de>
Cc: <www-validator@w3.org>
From preliminary investigation, it looks like you may be using the wrong document type declaration.  If you change it to HTML 4.0 Transitional, it should work fine:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 <HTML>
 <HEAD>
 <TITLE> ... </TITLE>
 <link rel=stylesheet href="style.css" type="text/css" >
 <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
 <!--
    ...
  // -->
 </SCRIPT>
    ...


----- Original Message ----- 
From: "Stieler" <stieler@mail.desy.de>
To: <www-validator@w3.org>
Sent: Tuesday, February 08, 2000 11:08 AM
Subject: Problem with JavaScript and CSS


Hello,

I tried to validate this document:

 <!DOCTYPE HTML PUBLIC "-//WebTechs//DTD Mozilla HTML//EN">
 <HTML>
 <HEAD>
 <TITLE> ... </TITLE>
 <link rel=stylesheet href="style.css" type="text/css" >
 <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
 <!--
    ...
  file://-->
 </SCRIPT>
    ...

In the link-line I got a "there is no attribute "TYPE"" error.
In the SCRIPT-line I got:
              "there is no attribute "LANGUAGE""
              "there is no attribute "TYPE""
              "element "SCRIPT" undefined"

What is wrong in my file ??

Thanks and best regards -

Dirk
Received on Friday, 11 February 2000 15:45:08 GMT

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