Break the <FONT ...> Habit: External Style Sheets
In the first example we set the styles rules inside a <FONT ...><STYLE ...><HEAD>
For example, create a text file called mystyles.css. Type this styles code into the file. Notice that this code does not have the
<STYLE ...>
H2
{
color:red;
font-weight:900;
font-family:sans-serif;
}
These styles can be loaded into a web page with a
<LINK ...><LINK ...>RELSTYLESHEET and
HREFmystyles.css). Set
TYPETYPE="text/css" to indicate that we are loading a CSS stylesheet.
<LINK REL=STYLESHEET HREF="mystyles.css" TYPE="text/css">
When the browser sees the <LINK ...><H2 ...>
<H2>Great Gift Ideas</H2>
which gives us
Great Gift Ideas
Copyright 1997-2002 Idocs Inc.
