Contents
|
Well, as you no doubt have guessed, CSS stands for Cascading Style Sheets. It's a simple styling language you can use to enhance the visual presentation of your HTML documents. It has a very simple structure, which goes something like this:
SELECTOR {property: value}
where the selector is the HTML element you wish to add style to and there is a huuuge list of properties and their respective values. Somewhere else :). Try the Links section. |
<LINK REL=StyleSheet HREF="yourstylesheetname.css" TYPE="text/css" MEDIA=screen>in your <HEAD> section.
<STYLE TYPE="text/css" MEDIA="screen"> <!-- @import url(http://www.whatever.com/style.css); @import url(/directory/someotherstyle.css); more style sheet code of your own --> </STYLE>this, too, goes into the <HEAD> section :) Note that although you can add more CSS code in there, the @import statements must appear first.
<STYLE TYPE=text/css MEDIA=screen> <-- stylesheet code --> </STYLE>But that's not all. You can inline style right in your HTML document [in the tag that you want to add style to]. This requires that you add <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> in your <HEAD> section. To inline style:
<TAG STYLE='StyleSheet code'></TAG>,where TAG is the HTML tag you wish to add style to.