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

Re: Your own example doesn't validate

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Mon, 27 Feb 2006 15:00:30 +0100
To: John Smal <john@smal.org>
Cc: www-validator-css@w3.org
Message-ID: <qa16021u531m47443s3sa3catf35l7rsu6@hive.bjoern.hoehrmann.de>

* John Smal wrote:
>>>       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 }

>That's not consistent with http://www.w3.org/TR/CSS21/intro.html

>Some of definitions in the HTML file the validator does accept. The  
>error statement is anyhow not comprehensible.

The text above the text area is "Enter the CSS you would like
validated:". Did you paste CSS or HTML into the area? From the
error mesage above it seems you pasted HTML. That does not work.
If you want to validate style sheets included in HTML documents,
either extract them manually or use the validate-by-uri feature.
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Monday, 27 February 2006 13:59:19 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:40:41 UTC