CSS Opening Line in the Head (CSS Declaration)

Sitepoint Members,
CSSLint.net says I have a lot of problems with my css declartion. I have it in the Head (don’t want it in a separate file). Firefox’s HTML Validator Add On (usind “tidy”) has the declaration highlighted in blue.
I have now
<style type=“text/css” media=“screen,projection,tv”>

Using http://www.w3.org/TR/html401/present/styles.html I tried changing it to

<META http-equiv=“Content-Style-Type” content=“text/css” media=“screen,projection,tv”>
tried
<http-equiv=“Content-Style-Type” content=“text/css” media=“screen,projection,tv”>
and tried
<Content-Style-Type" content=“text/css” media=“screen,projection,tv”>

but none of them worked, they all made a mess of mt site. What’s wrong with
<style type=“text/css” media=“screen,projection,tv”>
in the head?

Thanks,

Chris

Nothing that I can see. :slight_smile:

Perhaps the error is actually occurring somewhere else?

Ralph,
I came across this site and it looks like the different ways you declare css are kinda close. I wonder if I have too much in there.

For external CSS code they have
<link rel=“stylesheet” type=“text/css” href=“mystyle.css”>

for internal CSS code they have
<style>…</style>
I have
<style type=“text/css” media=“screen,projection,tv”>
Maybe I should have
<style media=“screen,projection,tv”> ?
Chris

That didn’t work. The Firefox add on said type=“text/css” is supposed to be in there.

I fugured it out - you’re not supposed to put in the declaration on that site. Got zero errors now.