You can change the color of the entire page with links to LINK and VLINK following attributes in the BODY tag as a starting point:
<body link="yellow" vlink="yellow">
<a href="/tips/">
This link will be yellow.
</a>
</body>
<a href="/tips/">
This link will be yellow.
</a>
</body>
Listing #1 : HTML code. Download bodyclr.html (0.21 KB).
<font color="red">
<a href="/tips/internet/">
Internet
</a>
</font>
<br>
<font color="green">
<a href="/tips/windows/">
Windows
</a>
</font>
<br>
<font color="blue">
<a href="/tips/programming/">
Programming
</a>
</font>
<a href="/tips/internet/">
Internet
</a>
</font>
<br>
<font color="green">
<a href="/tips/windows/">
Windows
</a>
</font>
<br>
<font color="blue">
<a href="/tips/programming/">
Programming
</a>
</font>
Listing #2 : HTML code. Download linkclr1.html (0.25 KB).
Now let's try taking above tags and moving FONT tags inside A tags (anchor or link) as follows:
<a href="/tips/internet/">
<font color="red">
Internet
</font>
</a>
<br>
<a href="/tips/windows/">
<font color="green">
Windows
</font>
</a>
<br>
<a href="/tips/programming/">
<font color="blue">
Programming
</font>
</a>
<font color="red">
Internet
</font>
</a>
<br>
<a href="/tips/windows/">
<font color="green">
Windows
</font>
</a>
<br>
<a href="/tips/programming/">
<font color="blue">
Programming
</font>
</a>
Listing #3 : HTML code. Download linkclr2.html (0.25 KB).
0 comments:
Post a Comment