Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / October 2004



Tip: Looking for answers? Try searching our database.

Document won't validated correctly

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Teddybearsrcute8 - 29 Oct 2004 00:48 GMT
Hello,

This is my first time using the CSS validator.(http://jigsaw.w3.org)  I created
an external style sheet and validated the html document, but I'm not sure why
I'm getting these errors. What is a parse tree?
If anyone can help I would appreciate it. Below is the info that I have from
the validator.
Thanks,
Teddybearsrcute8@aol.com

To work as intended, your CSS style sheet needs a correct document parse tree.
This means you should use valid HTML.

Errors

URI : file://localhost/TextArea

Line: 0 Parse error - Unrecognized : {color:#0000FF;
background-color:transparent; font: 100%/200% Arial,"Trebuchet MS", Helvetica,
sans-serif }
"iso-8859-1";
h1 , h2 {font-family : Garamond, "Times New Roman", serif;
color : navy;
background-color : transparent; }
p {line-height : 150%; }
body {background-color : transparent;
background-image : url(snow.gif);
background-attachment : fixed; }
Lauri Raittila - 29 Oct 2004 01:17 GMT
Teddybearsrcute8 wrote;
> Hello,
>
> This is my first time using the CSS validator.(http://jigsaw.w3.org) I created
> an external style sheet and validated the html document, but I'm not sure why
> I'm getting these errors. What is a parse tree?

Hm, what exactly did you do? URL?

> If anyone can help I would appreciate it. Below is the info that I have from
> the validator.

I can't say what it means, exapt that you have made some mistake.

> To work as intended, your CSS style sheet needs a correct document parse tree.
> This means you should use valid HTML.

So, make sure your html is valid, so CSS will work better.

Signature

Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>

jmm-list-gn - 29 Oct 2004 08:38 GMT
> To work as intended, your CSS style sheet needs a correct document parse tree.
> This means you should use valid HTML.

  The errors you received indicate you gave it an html file. Instead you
must give the CSS validator the URL to the css file itself. E.g.:

file://localhost/TextArea/styles/mostexcellent.css

Signature

jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)

Brian - 29 Oct 2004 18:03 GMT
[this was snipped; I've reinserted it to provide context for my reply]
>> This is my first time using the CSS
>> validator.(http://jigsaw.w3.org)
>
> The errors you received indicate you gave it an html file. Instead
> you must give the CSS validator the URL to the css file itself.

Not by a long shot. The W3C's CSS "validator" will find the stylesheets
associated with a web page and validate them. You might be thinking of
the WDG validator, which behaves as you describe.

Signature

Brian  (remove "invalid" to email me)

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.