Previous Message
Next Message

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

Sent by Dramatic Design on 26 September 2002 03:03


On Wed, 25 Sep 2002 22:10:09 -0400, d.jacquemin wrote:

>ahoy!
>a question about css validation.
>
>i have crafted a css file that seems to be error free. heck, even the
>warnings are just "Redefinition of voice-family" as i try to be nice to
>opera and ie5. however, 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.
>
>it got ugly at this point.
>
>valid html requires all kinds of nifty declarations like doctype and
>character coding.
>every css file i've seen (including mine) just starts right in with the
>element style declarations.

They don't mean "in your css file" - any HTML elements, including comments, are 
invalid in a css file. What they mean is that to get the results you expect, css 
ought to be applied to valid HTML, so HTML-validate your web pages as well..


[ dramatic design --- for web | print | theatre ]
[ po box 3263 | christchurch 8015 | new zealand ]
[ tel +64-3-360-2200 | cel +64-27-221-5053      ]
[ fax +64-3-360-2201 | e [EMAIL-REMOVED] ]
[ web http://www.dramatic.co.nz                 ]
Previous Message
Next Message

Message thread: