
Site Info

What Is ?
HTML 3.x
BACKGROUND
BGCOLOR
BODY
BODY TEXT
BOLD
BREAK
COLOR
FONT
FONT COLOR
FONT SIZE
HEAD
HEADING
HR
HTML
index
instructions
ITALICS
LISTS
nesting
PARAGRAPH
parameters
size
SPACING
structure
TAGS
TILING
TITLE
TYPE
UNDERLINE
Resources

Glossary
Site Directory
Help
|
TEXT Parameter
The <TEXT> parameter of the BODY tag effects the color of text of the page. It changes the color of the text on the page to any color you specify. This is really useful for making all of the text on a page appear to be a single color. If you don't specify any colour, the text will appear in black. You have to be careful not to set both the <TEXT> parameter and the <BGCOLOR> parameter to the same colour, otherwise you won't see any of your text at all.
|
<HTML>
<HEAD>
< TITLE> TEXT Parameter </TITLE>
</HEAD>
<BODY TEXT="#42BB42">
<- Content Goes Below Here->
Some Green Example Text
</BODY>
</HTML>
|
|
Some Green Example Text
|
How do you specify the colour? Look at the body tag, <BODY>, above. Inserted into it, is the TEXT parameter. To set the colour, set the TEXT parameter equal to the hexadecimal code for the color you want. If you need to review hexadecimal number codes, go back to the discussion of parameters.
Of course, sometimes you only want some of the text on a page to be specific color. In that case, you don't use the TEXT parameter. Instead you use the Font tag. This is a
container
tag, so only effects its contents. Using it, you can specify the color, size, and type face of a chunk of text. In fact, using it will over-ride what ever setting you have in the TEXT parameter. This is a general HTML principle. Local commands always override global ones. This means that you can set up all of the text on a page to be blue, and then override it at certain points, making the text red and boldfaced. The real advantage of using the TEXT parameter is to color all of the text on a page, so that you have to use fewer Font tags later on.
|