View Full Version : CSS Validation


glittergal
08-08-2006, 11:45 AM
I'm justs tarting to make a new website and I have the test page looking how I want it, however I do want the CSS to be correct and validated.

When trying to get validation I have so many errors and I don't understand some of them.

The colour I'm usuing isn't recognised. Can you only use certain colours in CSS?

There's also loads of things called Parse Errors and I have no idea what they are.

If anyone could help me out the link to my css is here (http://www.btinternet.com/~e_street/styledc.css). The validation link is here (http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.btinternet.com%2F%7 Ee_street%2Fstyledc.css&usermedium=all).

Merike
08-08-2006, 12:13 PM
<style type="text/css"> and </style> tags should be removed from an external stylesheet.
when listing fonts, separate them with "," not with ";", use ";" only in the end of a row
all color codes need to have "#" in front of them
all scrollbar attributes are not valid, if you want valid css you need to remove them completely

If I missed something, let me know.

djou
08-08-2006, 01:37 PM
A "parse error" is like a "grammatical" error. They are caused by the fact that you separated each font by a semi-colon (;) instead of a coma (,):

Tahoma; Verdana; Arial; should be Tahoma, Verdana, Arial

glittergal
08-08-2006, 02:35 PM
That's really helpful. Thank you both.

djou
08-09-2006, 01:39 PM
You're welcome.