| Would you like
to use multiple colors for your text links, rather than using a single
link color for the whole page?
You can specify the color
of links for the whole page using LINK and VLINK attributes inside the
starting BODY tag as follows:
<body link="yellow" vlink="yellow">
<a href="http://www.resource-a-day.net/">
This link will be yellow.
a>
body>
|
But, how can you have one
link colored in red, another in green and so forth? You may notice how
the following method does not work:
<font color="red">
<a href="http://www.resource-a-day.net/">
Introduction
a>
font>
<br>
<font color="green">
<a href="/members/resource1/makemoney.shtml">
Make Money
a>
font>
<br>
<font color="blue">
<a href="/members/resource1/login.shtml">
Members Login
a>
font>
|
Result:
Introduction
Make Money
Members Login
Now let's
try taking above tags and moving FONT tags inside A tags (anchor or link)
as follows:
<a href="http://www.resource-a-day.net/">
<font color="red">
Introduction
font>
a>
<br>
<a href="/members/resource1/makemoney.shtml">
<font color="green">
Make Money
font>
a>
<br>
<a href="/members/resource1/login.shtml">
<font color="blue">
Members Login
font>
a>
|
Result:
Introduction
Make Money
Members Login
NOTE:
Very early browser implementations of the COLOR attribute in FONT tags
don't recognize color names. Be sure to use numeric color codes whenever
possible to make your pages backward compatible with older browsers.
|