faqts : Computers : Internet : Web : CSS

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

3 of 3 people (100%) answered Yes
Recently 1 of 1 people (100%) answered Yes

Entry

Style Sheet appears in pages

Sep 12th, 2000 08:28
Philip Olson, Alfred Goldberg,


Could be a few reasons :
1. Old Browser
Style sheets use <!-- --> to comment out the sheets for old browsers.  
These are ignored by "CSS Aware Browsers", for example :
 <STYLE type="text/css">
   <!--
     p.red 
      {color: red}
   -->
 </STYLE>
2. Be friendly to all
The most accepted way to present a style sheet is as described above.  
Other ways, such as linking externally present problems in some 
browsers, browsers that you may be testing with.  An example of such a 
link is :
   <LINK REL="stylesheet" HREF="mycss.css" TYPE="text/css">
Although this is indeed accepted, some older browsers do not know what 
to do with it.