| Font Functions |
|
|
Lists & Indents
|
Course Contents
|
|
Absolute Font Size |
Relative Font Size |
Font Color | Font Face | Font Defaults |
|
Font Size:
Font size is specified using the general command format above where
Absolute Font Size -
The values for font size
Relative Font Size -
Font sizes can also be set relative to one another.
Note that the default font size is Example:
This text is in default size. It <font size=+1>enlarges by one
size,</font> <font size=-1>reduces by one size</font> and returns
to normal.
Yields - This text is in default size. It enlarges by one size, reduces by one size, and returns to normal.
Font Color:
Font colors can be controlled using the The table below shows the hexadecimal codes for the standard 16 Windows colors:
The table also shows the color names which correspond to the hexadecimal codes. These are the so-called Netscape named colors. There are over 200 named colors. Recognized color names can be used in place of hexadecimal color codes. Obviously, there are literally millions of potential color variations possible if hexadecimal codes are used. Some browsers, however, may only render a basic set of 216 standard colors without "dithering" them, i.e.,, rendering them as composites of small dots of color, like a mosaic or a pointilist painting. This may depend on the color screen attributes set on the local microcomputer that is displaying the web page, as well. Most current browsers and up-do-date microcomputers are capable of displaying over 16 million different colors without dithering. The basic 216 colors fall into a so-called "color cube" with six allowable color values on each side. Allowable values for the RED, GREEN and BLUE settings on the RBG scale are: 00, 33, 66, 99, CC, and FF. Three color indexes with 6 possible settings for each color index yields 63 - or - 216, possible color combinations. See the standard 216 color table for more detail. Examples:
or
Yields -
Font Face:
The face of the font to be used can be specified in the Example:
Yields - Comic Sans MS Font Several font face names can be indicated in the command parameter string in the order of their preference for loading. The browser will default to the first named font found among installed fonts on the user's microcomputer. If no match is found, the microcomputer operating system may attempt to replace the font requested with the closest match from an appropriate font family. Example:
Yields - Swiss Sans Serif Font Family In this example the MAC font name "geneva" is included in the font face list first because MACs may have trouble reading past Windows font names in the list. The remaining font names are some variants in the Windows Swiss sans serif font family which differ slightly in their appearance. When running on a PC the browser application will use the first font name found which corresponds to an installed Windows font. For this reason, font names should be listed in the order of preference with MAC fonts listed first.
Setting Font Defaults:
All font settings can be set up as defaults in the
The attributes are the same as those used in the basic |
| TOP |
Absolute Font Size |
Relative Font Size |
Font Color | Font Face | Font Defaults |
|
|
Lists & Indents
|
Course Contents
|