Lesson 15: Changing the color of the Text


Return to Lesson 14

Continue on with Lesson 16


There are basically three types of text that you can change the color of: the regular text, the unvisited links and the visited links. These statements are also added to the <BODY> tag. To change the text: <BODY TEXT=#xxxxxx> To change the unvisited link: <BODY LINK=#xxxxxx> To change the visited link: <BODY VLINK=#xxxxxx> So the whole body tag could look like this: <BODY BGCOLOR=#000000 TEXT=#FF0000 LINK=#0000FF VLINK=#00FF00> This would put a black background, red text, blue unvisited links and green visited links. or <BODY BACKGROUND="dogpic.jpg" TEXT=#FF0000 LINK=#0000FF VLINK=#00FF00> This would make the same color changes as the first example, except instead of a black background there would be an image background. Assignment 15 Experiment with the various text colors on your personal webpage. Remember to choose colors that are easy for the people visiting your page to read. There is a list of colors and codes at the end of this tutorial. end of lesson