473,320 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Document won't validated correctly

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,
Te**************@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; }

Jul 21 '05 #1
3 2093
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.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Jul 21 '05 #2
Teddybearsrcute8 wrote:

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

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 21 '05 #3
jmm-list-gn wrote:
Teddybearsrcute8 wrote:


[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.

--
Brian (remove "invalid" to email me)
Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Varun | last post by:
Hi There, I have a form("myRequest.asp") and the values from it are retrieved into the page ("output_Print.asp") on which I have two buttons('Save As Complete' and 'Save As Incomplete'). When the...
15
by: lawrence | last post by:
Is this the correct way to test for a method before I use it? createRange() is, I believe, an IE only method. function wrapSelectionInTag(selection, tag) { if (document.selection.createRange)...
3
by: Paul Thompson | last post by:
I am working with a special tool which pre-processes the page. Using document.write, I am composing the page while it is loading, so I need to force a reprocess of the page AFTER the page loads. ...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
2
by: Chris Saunders | last post by:
I'm just beginning to learn ADO.NET and have taken some code from the book "Pro ADO.NET 2.0". When I run this application the "Validated" MessageBox gets displayed but when I quit and rerun the...
11
by: Michael Powe | last post by:
How can I make an XHTML-compliant form of an expression in this format: document.write("<scr"+"ipt type='text/javascript' src='path/to/file.js'>"+"</scr"+"ipt>"); this turns out to be a...
5
by: Lloyd Dupont | last post by:
I have a class which looks like that: class Stuff { Dictionary<string, objectproperties; List<Stuffchildren; } I'm writing a home made XML 'serialization'. I quote that, because it's not...
3
by: Lord0 | last post by:
I *think* I need to be able to validate subsets of an XML document using different schema. The functionality I'm trying to implement is this. a) External suppliers produce an XML document...
4
by: gtalmes | last post by:
I am writing a pretty simple Javascript which makes use of getElementById to work with some divs on the page. The divs are labelled correctly (id="whatever") and there are no duplicate div ids. ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.