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.


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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:40:40 UTC