Because only one color can be set in the BODY tag, temporarily changing the color for links must be done in another way. You can do this with style sheets. This is the preferred method There are basically two ways to apply style sheet information to a HTML element. It can be specified inline, in the STYLE attribute of the tag:
<A href="somepage.html" style="color: #00a000">Visit Somepage</A> |
Visit Somepage |
Including the color inside the tag works ok if you only have one link that
needs a different color. But if you have more links, then it is easier to
create a separate class in a style sheet in the HEAD of the page, and refer to
this class when needed.
Here's an example:
<HEAD> |
Visit Somepage |