Font tag

The <FONT> ... </FONT> tags are used to specify the size of the font for the enclosed text via the SIZE attribute: SIZE=n where n is a value from 1 to 7 indicating the size of the font. 3 is the default value. It can also be specified as a value relative to the current size using a + or -, for example <FONT SIZE=+2>. ex.

<FONT SIZE=1>Font Size 1</FONT><BR>
<FONT SIZE=2>Font Size 2</FONT><BR>
<FONT SIZE=3>Font Size 3</FONT><BR>
<FONT SIZE=4>Font Size 4</FONT><BR>
<FONT SIZE=5>Font Size 5</FONT><BR>
<FONT SIZE=6>Font Size 6</FONT><BR>
<FONT SIZE=7>Font Size 7</FONT><BR>
Font Size 1
Font Size 2
Font Size 3
Font Size 4
Font Size 5
Font Size 6
Font Size 7

<BASEFONT SIZE=+2>
Change the basefont size, size is 5. Size can have a value of 1 to 7. All relative font change in the document after the <FONT
SIZE=-2>&lt;BASEFONT&gt;</FONT> tag will be relative to that value.

<H1>Head Level 1</H1>
<H2>Head Level 2</H2>
<H3>Head Level 3</H3>
<H4>Head Level 4</H4>
<H5>Head Level 5</H5>
<H6>Head Level 6</H6>

<BASEFONT SIZE=-2>
Change the basefont size, size is 5. Size can have a value of 1 to 7. All relative font change in the document after the <basefont> tag will be relative to that value.

Head Level 1

Head Level 2

Head Level 3

Head Level 4

Head Level 5
Head Level 6

The FONT tag also allows you to change the color for the enclosed text. The attributes is COLOR. Colors are given as RGB in hexadecimal notation or as one of the standard color names; for example: <FONT COLOR="C000FF"> or <FONT COLOR="brown">

<FONT COLOR="#FF0000">RED COLOR</FONT>

<FONT COLOR="#00FF00">GREEN COLOR</FONT>

<FONT COLOR="#0000FF">BLUE COLOR</FONT>

<FONT COLOR="Red">RED COLOR</FONT>

<FONT COLOR="Green">GREEN COLOR</FONT>

<FONT COLOR="Blue">BLUE COLOR</FONT>

A new tag introduced by Microsoft is the face tag which allows you to change the typeface of the text>

<FONT FACE="helvetica">Helvetica Font</FONT><BR>
<FONT FACE="times">Times Font</FONT><BR>
<FONT FACE="courier">Courier Font</FONT>

Helvetica Font
Times Font
Courier Font

You can also include font faces that are nonstandard: Check out Web Typography Center


Other tags used with text are:

<UL>
  <LI> Normal Font
  <LI> <BIG>Big Font</BIG>
  <LI> <SMALL>small font</SMALL>
  <LI> <BIG>Big <BIG>BIG <BIG>FONT</BIG></BIG></BIG>
  <LI> <SMALL>small <SMALL>small font</SMALL></SMALL>
  <LI> <BIG>Big Font <SMALL>Small font</SMALL></BIG>
  <LI> <SMALL>small Font <BIG>Big font</BIG></SMALL>
</UL>


HTML Fonts Demo


Click here to return to Wayne's World's homepage: arrowUp

Wayne Summers summers_wayne@ColumbusState.edu

last revised Aug. 7, 1996