Forum Moderators: not2easy

Message Too Old, No Replies

css syntax

         

webdesignerq

1:36 pm on Apr 12, 2004 (gmt 0)



<style type="text/css">
<!--
@import url("styling.css");
-->
</style>

OR

<style type="text/css" media="screen,projection">
<!--
@import url("styling.css");
-->
</style>

?

Is this good/necessary? also to include in your <head>..</head> page:

<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />

aeve

2:33 pm on Apr 12, 2004 (gmt 0)

10+ Year Member



As stated in other threads, it's better to leave out html comments (I haven't seen a version 3 browser in a while and they could get you in a lot of trouble in the not so distant future). Otherwise the two are more or less equivalent. Neither will be read by nn4 since it doesn't recognize @ commands. The second however is more specific -- the rules will only be applied to screen and projection media (no print styling, etc.) The main reason most people include projection is so that opera will apply the rules in full-screen mode. I'm a 'meta' minimalist, but others might see reason for the metas.

Adam

DrDoc

3:16 pm on Apr 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As far as those meta tags... Yes, you should include them

ergophobe

3:29 am on Apr 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



In what circumstances do the meta tags help or what spec requires their inclusion?