Previous Message
Next Message

Re: [css-d] But, it is it valid CSS?

Sent by Adam Kuehn on 26 September 2002 03:03


d.jacquemin wrote:
>on the validation page
>(http://jigsaw.w3.org/css-validator/validator-upload.html) and on the
>results page there is a note. "To work as intended, your CSS style sheet
>needs a correct document parse tree. This means you should use valid HTML."
>being perhaps a bit too naive, i decided i check to see my css was valid
>html using the html validator.

Er, no.  Don't validate the css against the html validator - they 
aren't the same species.  You validate the underlying html file 
against the html validator.  If that checks out, *and* your 
associated css file validates against the css validator, then you are 
good to go.  It is the html file that needs the doctype, etc.

And yes, you really do need to validate both.

-- 

-Adam Kuehn
Previous Message
Next Message

Message thread: