HTML Tutorials‎ > ‎

Text & Link Colors

NOTE: This is the old way of defining the look & feel of webpages. The newer & better way is through CSS. However, this is an HTML tutorials series, so here we go.

In the next few minutes I will show how to assign text & link colors for your webpage!

For starters, we need the <BODY></BODY> tags. This is where all your webpage info goes, content, images, etc. But, for now, we will focus on the <BODY> tag. Your text color & link color info will go within this first tag.

First let's focus on the text color. Here's an example of how the tag will look: <BODY TEXT="#000000"> Notice: TEXT, that stands for the TEXT COLOR We're using hexadecimal code here to get our TEXT COLOR. In this case, our TEXT COLOR is black (#000000) We can make it any color we want, though. But, it's a good idea to make your TEXT COLOR contrast with the background color, so it's more legible.

Now, for those links. The first tag atribute is pretty much self-explanatory: <BODY LINK="#FF00FF"> There's also ALINK, which stands for Active LINK, And VLINK, which stands for Visited LINK

Here's a good site to get hex color codes for your site: