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

HTML Reference Guide

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

BACK <BASEFONT> Command next

Command Syntax:

<BASEFONT command parameters>

The <BASEFONT> command is used only within the <HEAD> command to establish default attributes for the base font used for all normal text placed on the page.

Command Parameters: 
face="font1, font2, . . ."
  • The font face parameter takes a comma-delimited list of valid font names.
  • Establishes the base font that will be used for all normal text placed on the page.
  • Supplied font names must be exactly the same as the names of fonts installed on the user's machine.
  • If none of the font names supplied can be found installed on the user's machine then the browser will use the closest approximation available, if possible.
size="font size"
  • Defines a default font size for all normal text placed on the page.

  • The allowable range of values for font size is from 1 to 7.

Example:
A Partial Document Head Segment

<HEAD>
  <BASEFONT face="geneva,arial,helvetica,helv" size="2">
</HEAD>

  • Establishes a list of base fonts to be used by the browser in displaying normal text.

  • The browser attempts to locate and use each font name provided in succession until an exact match is found among fonts installed on the user's machine.

  • Establishes the default font size as 2 for all normal text on the page.  The normal default font size is 3.

Return to Section A:D


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




Hosted by uCoz