Fonts and Tags




To set the Font size just use the size attribute of the font tag. You can use a value from 1 to 7, you can also use - or + signs.

Example - to increase font size
<"SIZE="-1" ><FONT SIZE="+3">text between tags will appear 3 sizes larger<FONT SIZE="+3">

it will look like this

text between tags will appear 3 sizes larger
in this example SIZE="-2"


You can use the basefont tag to set the text size for the whole page. To do this place the basefont tag right after the body tag. This will set the size for all the text in the document unless specified by another font tag.

Example of basefont tag
<"SIZE="-1" ><BODY><BASEFONT SIZE="+3">

There BODY tag allows you to set the text color you can aslo specify color in the FONT tag. To set the color in the body tag use TEXT="#000080". "#000080" is the hexadecimal color code. Check out the html color chart for the hex codes for the colors you want. If you specify color in the FONT tag it will overide text color specified in the BODY tag. That allows you to use different text colors. To set the color in the FONT tag Follow this example.
<" SIZE="-1" ><FONT SIZE="+1" COLOR="#800000">this text will be in maroon</FONT>

like this
this text will be in maroon

Another specification you can use in the FONT tag is the face attribute. This allows you to select the type of font used to display text. The computer viewing your page must have that font or it will revert to the default. You can list several font types seperated by comma's.

Example
<FONT SIZE="+1" FACE="Arial" >Arial</FONT>

<FONT SIZE="+1" FACE="Comic Sans MS" >Comic Sans MS</FONT>

<FONT SIZE="+1" FACE="this font doesn't exist,Comic Sans MS" >you can use several font types</FONT>

These three lines will appear like this
Arial

Comic Sans MS

you can use several font types

Other tags you can use to change font appearance include

<STRONG>makes the text bold</STRONG>

makes the text bold

<I>makes the text italic</I>

makes the text italic

heading tags H1 through H6

<H1>H1 tag</H1>

H1 tag



<H6>H6 tag</H6>

H6 tag


<U>underlined text</U>

underlined text





Copyright © 1997~98 All rights reserved.
The Albritton Family Home Page ~ Live Oak, Florida
This Web Site hosted, designed and mintained by: Charles & Susan Albritton

E-mail: Charles Albritton
E-mail: Susan Albritton


Go to Top Of Page

Last Modified on May 03 1998