<FONT></FONT>

Changes the font size of text


[HOME] [PAGE UP] [PREV PAGE] [NEXT PAGE]


An element used to modify font size and color for text. Some browsers support an attribute that will allow you to actually specify the font "face" like you would select a font in a word processing package.

   <html>
        <head>
        <title>How to fiddle with fonts</title>
        </head>
        <body>
           .
           .
==>>      <font size=+2>bigger text</font> than this.
          .
           .
        </body>
        </html>

The example shows how to make a particular character or phrase a different size than the other text. It uses a "relative" size specification to make the text 2 sizes bigger than the current size of the text being displayed. The default is 3, so unless you've overridden this somewhere else, this would be the same as putting size=5. To make the text smaller you simply put a - sign in front of the number. To make it an absolute size then leave off any signs.

HTML 3.2 Final

size
Used to specify the size of the font. Relative sizes compared to the text being displayed are indicated by putting a + in front of the number to make it bigger or a - in front of the number to make it smaller. Remember, the font sizes range from 1 to 7 with a default of 3. Your expressions will be evaluated but can never be bigger than 7 or smaller than 1.
color
This attribute can be used to set the color of the text. You can do it the hard way - using the hexadecimal notation for color values (#rrggbb) like in color="#FF0000" or you can use one of the 16 standard color names from the specification. These are Black (#000000), Silver (#C0C0C0), Gray (#808080), White (#FFFFFF), Maroon (#800000), Red (#FF0000), Purple (#800080), Fuchsia (#FF00FF), Green (#008000), Lime (#00FF00), Olive (#808000), Yellow (#FFFF00), Navy (#000080), Blue (#0000FF), Teal (#008080) and Aqua (#00FFFF).

Netscape

    Nothing special.

Microsoft Internet Explorer

Added the ability to specify a particular font to use, if it's available on the viewing computer.

face
You can use this attribute to specify one or more fonts, by name, to use in place of the default font. If the browser looks at the list in order until it finds a font that matches your name. If it doesn't find any of them then it uses the default. Some examples are Arial, Helvetica, Times New Roman. You can see lists of fonts if you have a word processing package on your computer. I use Microsoft Word so I can just pull down the list of fonts on the toolbar and see which ones are on my computer. Of course, you don't want to get too carried away with this. After all, not everybody has all the fonts installed on their computers.

Internationalization

    Nothing special.


[HOME] [PAGE UP] [PREV PAGE] [NEXT PAGE]


The Rusk Family . . . "the Legend Continues"

Michael T. Rusk
Comments to author: mrusk@radix.net

All contents copyright © 1996, 1997 Michael T. Rusk
All rights reserved.

Revised: December 03, 1997 10:40 -0500
URL: ./htmlgd/tagfont.html