dacs.doc electric

 

HTML Basics - Part II

By Scott Preston

 

If you have already seen my first article on HTML Basics, I introduced font size, and other tags. This article will introduce colored text.

If you have been to a website personally made, you may notice the creator changed the colors of the font. However, if the person used an HTML editor, the editor changes the color of the text for you. But if you are writing your own HTML, you need to know how to use the COLOR attribute in the FONT tab.

Colors may be specified using either a color name that is known by the browser (there are several dozen standard color names) or by specifying the mixture of red, green and blue using a number.
Here is a link to a table of the common color names:

http://www.w3schools.com/html/html_colornames.asp

Here is a link to a ‘color picker’ - click on the color bar, then click on the shaded box and it will give you the color number:

http://members.aol.com/dbakerboys/applet/color_picker.html

And lastly, here is a table of color numbers:

http://www.lissaexplains.com/color.shtml

Once you have selected the color, you put it into the FONT tag. All text following the tag will be that color until you put a /FONT tag.

<font color=”green”>Text in green</font>
<font color=”#8470ff”>Text in a light blue color</font>

Lastly, if you want to each letter a different color, there are utilities on the web which will write HTML for you. Take a look at http://www.chamisplace.com/asp/tc.asp?stage=2.


Scott Preston is 12 years old. He currently is the Technology Administrator for the Ridgefield Boys and Girls Club. His father, Bruce, runs the Access SIG and Random Access in DACS.

BackHomeNext