Lesson Three

Objectives:

  • Learn to change the background color
  • Learn change font color

Learning HTML


Now you will learn how to add color to your web pages. First you'll see how to change the background color, then you will learn how to change the color of your font.

There are two ways to specify color to your web browser. If you only want to use the most basic of colors, you use the body bgcolor tag to specify the exact color in quotes, as in:

< body bgcolor = "red">. Note that the body bgcolor tag is added to the body tag (you don't need two body tags!).

I mentioned that this method works for simple colors, but what if you want a shade of lime green? You need to see a color chart that shows all the colors available to you. Each color has a unique code written in hexadecimal numbering. As a web designer, you don't need to worry about converting hexidecimal numbers into decimal numbers. All you need to do is look up the color you like and copy down its code number.

A really cool website I just discovered,made a chart that allows you to click on a color and it automatically changes the color of your page. It has some sample text that also changes colors as you roll your mouse over the color codes. This site can save you hours of time as it allows you to instantly see what all the various web color combinations look like. Check it out, it's called the color picker.
Now you're ready for your next assignment. Assignment #3.

<< Back