Thursday, September 8, 2011

HTML: Adding Color

Hello Students,

Todays Agenda:
HTML Demonstration, Background color, image, text color
Lab Time



HTML COLOR AND BACKGROUND TAGS
Adding color to your html files is easy. You can also use images for backgrounds as well.

Adding a background color is easy, add the bgcolor tag to your body tag. Pick a color from the chart above and type in the 6 digit hexadecimal code.
<body bgcolor="669933">

Adding a background image is easy too. Use the background tag to repeat an image across your background.
<body background="yourfilenamehere.jpg">

Check out these tags below to add color to text. Remember just wrap these tags around the text you want to modify.
<font size="3" color="red">This is some text!</font>
<font size="2" color="blue">This is some text!</font>
<font face="verdana" color="green">This is some text!</font>

Embedding images is easy too, but I will let you figure that one out on your own!  ;-)

Check out this website called HTML MADE EASY:


- Mr.Wilson