Web Design Programming Half-Life Counter-Strike Rainbow 6 E-Mail TunkeyMicket

CSS Tutorial [page 4]


   Statements in a CSS declaration are delimeted by a semi-colon, ";". However, as you probably have seen, CSS declarations ALWAYS begin with an open-brace, "{". Then after your last statement, a close-brace, "}", is used. So, in conclusion, multiple statements in a declaration should look like the following:

<HTML>
<HEAD>
<TITLE>CSS Class Tutorial</TITLE>
<STYLE>
     FONT#bluefont { color: blue; font: bold italic; }
     B.greenfont { color: green; font: bold; }
     #grayfont { color: gray; font: italic; }
     .navyfont { color: navy; font: bold; }
</STYLE>
</HEAD>
<BODY>
<TT ID="grayfont">This is gray and italic!</TT>
<B CLASS="greenfont">This is green and bold!</B>
<FONT ID="bluefont">This is blue, bold, and italic!</FONT>
<I CLASS="redfont">This is navy and bold!</I>
</BODY>
</HTML>

   Well, that is about all I can say for multiple statements. However, I know that telling you all this is worth absolutely jack, UNLESS you know what properties you can use in a CSS declaration. Guess what is next...

3 4