W3C home > Mailing lists > Public > www-validator-css@w3.org > September 2004

Re: Puzzled.

From: David Dorward <david@dorward.me.uk>
Date: Tue, 14 Sep 2004 08:13:47 +0100
To: Anu Blom <anu.blom@myy.helia.fi>
Cc: www-validator-css@w3.org
Message-ID: <20040914071347.GB28646@us-lot.org>

On Mon, Sep 13, 2004 at 11:06:24PM +0300, Anu Blom wrote:
> I don't see why the CSS part of my test page (specified inside the head tag)
> does not validate. I have pasted that part into the text box of the CSS Validator.

> Parse error - Unrecognized: (style type="text/css")  <!-- body (( alignment:
> center; ))

"<style type="text/css"><!--" is HTML, not CSS. When given an HTML
document the CSS validator will extract the CSS from it, when given
what it is told is CSS, it won't.
 
> (this is displayed whether or not I have the actual specifications inside
> comment tags) and after that I'm "encouraged to offer a generic family as a last
> alternative." I know what that means, but unfortunately I have forgotten how to
> specify more than one font-family.

http://w3.org/TR/CSS2/fonts.html

-- 
David Dorward                                      http://dorward.me.uk
Received on Tuesday, 14 September 2004 07:13:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:15 GMT