The font tag allows you to specify the size and color of a section of text
Setting Font Size
The FONT tag use the SIZE attribute to change the size of a font. You can set font size using absolute or relative size values.
Setting Absolute Font Size
There are seven “absolute” (or fixed) size, numbered from 1 to 7, that you can set using the SIZE attribute of the FONT tag. The default is 3, which is the same as regular paragraph text 1 is the smallest and 7 is the largest, which means you can set two absolute font size that are smaller than normal paragraph text and four size that are larger. Each Web browser determines the actual size of these fonts.
Example:
HTML>
HEAD>
TITLE> My Web Page
/TITLE>
/HEAD>
BODY>
P>
FONT SIZE=”1”> Font Size1.
/FONT> BR>
FONT SIZE=”2”> Font Size2.
/FONT> BR>
FONT SIZE=”3”> Font Size3.
/FONT> BR>
FONT SIZE=”4”> Font Size4.
/FONT> BR>
FONT SIZE=”5”> Font Size5.
/FONT> BR>
FONT SIZE=”6”> Font Size6.
/FONT> BR>
FONT SIZE=”7”> Font Size7.
/FONT> BR>
/BODY>
/HTML>Setting Relative Font Sizes
You can set “relative” font sizes. Relative font size changes are indicated by either a plus (+) or (-) sign preceding the SIZE attribute value. For instance, FONT SIZE=”+1” indicates a font size that is one size larger than the base font. Because the default base font is the same as an absolute font size of 3, a relative font of +1 would be the same as an absolute font size of 4 (3+1=4).
Example:
P>
font size=”-2”> Font Size -2.
/font> br>Setting the Base Font
The BASEFONT tag allows you to change the size of the “base font” (paragraph text). You can set it to any of the absolute font size, 1 though 7 (3 is the default).
Example:
BASEFONT SIZE=”4”>
0 comments:
Post a Comment