W3C home > Mailing lists > Public > www-validator-css@w3.org > October 2005

unrecognized media screen, print

From: Alison Green <alison@shift.co.nz>
Date: Fri, 14 Oct 2005 14:30:25 +1300
Message-ID: <1F63C6BCAC701A4CB7FC8560E644771F4459E1@britney.shift.co.nz>
To: <www-validator-css@w3.org>

Hi there,

I'm trying to validate my pages which include @import to call the stylesheets. The page begins as follows:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Thanks for signing up : NZHistory</title>
<!-- exclude style sheet for IE WIN 4.0, NN4.0 and MAC IE 5.0 -->
<style type="text/css" media="screen, print">
        @import url(css/general.css);
		@import url(css/navigation.css);
		@import url(css/1-col.css);
		@import url(css/utilities-general.css);
</style>
<link rel="stylesheet" href="css/print.css" type="text/css" media="print" />
</head>

When I try to validate the CSS I get the following error:

Errors
URI : http://www.webweaver.co.nz/client_testing/shift/nzhistory/alerts-thanks.html

    * Line: -1

      unrecognized media screen, print 

I've also tried it with <style type="text/css" media="screen,print"> (no space between screen, and print) - I get the same error. 

Could you please tell me what I'm doing wrong? I'm sure this is the way to select more than one media type - isn't it? (oh, and I know the reference to the print stylesheet doesn't work - I haven't built it yet)

Hoping you can help me out...

Thanks!

:)Ali
Received on Friday, 14 October 2005 06:15:54 GMT

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