You are here:  NetStrider » Tutorials » HTMLRef » Commands » FONT «

HTML Reference Guide

Author: Randy D. Ralph.   In place March 1, 1999.   Copyright © 1999 NetStrider.   Presented as a public service.

BACK <FONT> Command next

Command Syntax:

<FONT command parameters> some text </FONT>

Command Parameters: 
color="color value or color name"
  • hexadecimal color value for Red, Green and Blue in the format #RRGGBB
  • a standard color name
  • the default text color is "black" or "#000000" unless changed in the <BODY> statement.
See also a discussion of color in HTML.
face="fontname1, fontname2, . . ."
  • affects only the proportionally spaced font in the browser
  • a comma-delimited list of standard font face names
  • the first available font name in the list is used for display
  • font names used must match installed font names exactly
  • fonts must be installed on the viewer's microcomputer to display
size=n

absolute

  • an integer in the range of accepted values from 1 to 7.
  • the default font size is 3 unless changed by the <BASEFONT> command.
size=±n

relative

  • a positive or negative integer increments the existing font size up or down by the value given.
  • value supplied must result in a font size within the acceptable range 1 to 7.

Examples:
Color -

<FONT color="darkgreen"> color name darkgreen </FONT>

<FONT color="#993399" > RGB hex color value #993399 </FONT>

See:  Color Tables.
 

Face -

<FONT face="comic sans ms"> Comic Sans MS Font Face </FONT>

Note:  The font face(s) listed must be installed on the viewer's microcomputer in order for them to display and the font name used must match exactly the font names installed.
 

Size -

absolute:

<FONT size=5> font size 5 </FONT>

Range of Accepted Values:  | 1 | 2 | 3 (default) | 4 | 5 | 6 | 7| )


relative:

<FONT size=-1> text is rendered one font size smaller </FONT>

The resulting font size must be in the range of accepted values from 1 to 7.
 

Return to Section E:H


Return to the List of Commands
Author: Randy D. Ralph.  In place March 1, 1999.  Copyright © 1999 NetStrider.  World Rights reserved.




Hosted by uCoz