Storage Sheds

Style Storage

The four basic ways of storing rules

Intro

Inline styles: using the html style attribute

Embedding a style sheet


<style type=”text/css”> p {color:#F0F;} </style>      


<style type="text/css">
#weeklyquote {
     color:#020;
}
.interjection {
     color:#777;
     test-align:right;
}
</style>

Linking to an external .css File

Importing an external style sheet

<STYLE TYPE="text=css">
<!--
@import url(http://www.gottheknack.com/site.css);
@import url(http://www.gottheknack.com/dept.css); 
/* Other css rules can go here, but imports must be at the top */
-->
</STYLE>

Regarding both imported and linked-to css files:

Assignment