|
<FONT ...>
So when Netscape introduced the <FONT ...>
Now we've found out what a mess we've gotten ourselves into.
It turns out that <FONT ...><FONT ...>
It's time to break out of this habit. This tutorial will show you how to use styles to create all the font effects you ever wanted, with less work and less code. Yes, styles are a little harder to learn than HTML, but not much, and the learning you put in at the beginning will save you hours of frustration down the road. Style will let you stop wasting time with heaps of code and get back to creating a great web site.
<FONT ...><FONT ...><FONT ...>
<P> The <FONT FACE="Arial, Helvetica, Geneva" SIZE="+1"><A HREF="library.html">library</A></FONT> has an arrangement with the <FONT FACE="Arial, Helvetica, Geneva" SIZE="+1"><A HREF="cafeteria.html">cafeteria</A></FONT> to provide refreshments during the weekly <FONT FACE="Arial, Helvetica, Geneva" SIZE="+1"><A HREF="coffeehouse.html">coffee house</A></FONT> lectures. </P>
which gives us
The library has an arrangement with the cafeteria to provide refreshments during the weekly coffee house lectures.
Notice that we had to use the same code for each font effect. If you wanted to try a different effect you'd have to go through and change every<FONT ...>
Now let's consider the styles way of doing font effects. (We'll walk you through the details starting on the
next page, for now this is just an overview.) First we create a styles rule with code like this (in a STYLE tag or in a style sheet file):
.resources A
{
font-family:sans-serif;
font-size:120%;
}
This rule creates a class called
resources, and says that all <A ...>CLASS attribute:
<P CLASS="resources"> The <A HREF="library.html">library</A> has an arrangement with the <A HREF="cafeteria.html">cafeteria</A> to provide refreshments during the <A HREF="coffeehouse.html">coffee house</A> lectures. </P>
which gives us
The library has an arrangement with the cafeteria to provide refreshments during the coffee house lectures.
Notice that we don't have to do anything special to the<A ...>
That's just the tip of the iceberg, but it gives you and idea of how much simpler styles are than the <FONT ...>
|
Recommended Resources |
|||
| web hosting tutorials Credit Help |
Search the Internet Search Engine Help |
Low Fat Lifestyle Internet Traffic |
Web
Hosting Web Design |
|
Discount
Hotel Reservations All
Rights Reserved, Copyright © Free-HTML-Tutorials.com 2003 |
|||