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

Your own example doesn't validate

From: John Smal <john@smal.org>
Date: Mon, 27 Feb 2006 11:29:49 +0100
Message-Id: <8E939E0E-807A-4718-8B69-28704DA039E5@smal.org>
To: www-validator-css@w3.org

Using the CSS-validator for the control of a style definition within  
a html page I received  an error for the first definition I couldn't  
explain. The following definitions were validated well. Changing the  
order the first definition remains rejected.

Then I tried to validate the example on
http://www.w3.org/TR/CSS21/intro.html:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<HTML>
   <HEAD>
   <TITLE>Bach's home page</TITLE>
   <STYLE type="text/css">
     h1 { color: red }
   </STYLE>
   </HEAD>
   <BODY>
     <H1>Bach's home page</H1>
     <P>Johann Sebastian Bach was a prolific composer.
   </BODY>
</HTML>

The result:

       Parse error - Unrecognized : <!DOCTYPE HTML PUBLIC "-//W3C// 
DTD HTML 4.0//EN"> <HTML> <HEAD> <TITLE>Bach's home page</TITLE>  
<STYLE type="text/css"> h1 { color: red }

No Style Sheet found [sic!]

It seems to me that the validator doesn't handle embedded style  
sheets well.

Greetings from Holland,
John Smal
john@smal.org
www.smal.org
06 51572415
Received on Monday, 27 February 2006 13:31:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:16 GMT