http://fishcaro.crosswinds.net/day_32_font_tag.htm
<FONT> </FONT>
container tag can be used to specify the size, color,
and face for the enclosed text. This tag has been deprecated by the W3C (but
is still supported), since style sheets are recommended for controlling presentation.
However, the <FONT>
tag is out there (a lot), so you certainly need to
be aware of how it works. Style sheets will be discussed in future lessons.
You will need 3 index cards (6 sides) for this lesson.
INDEX CARD #32:
THE <FONT> TAG (32a)<FONT> tag:
Here's an example:
Here's the result of the sample text:
This text will be presented without serifs, in the color green, and 1 size larger than the default size of the text. |
FACE ATTRIBUTE FOR THE FONT TAG (32b)
NOTE: Specifying a particular font in no way guarantees that your user will see the page as you intend: browsers are limited to fonts that are installed on the user's local hard drive (unless you use embedded font technology, which is discussed in a future lesson). If you specify a font the user doesn't have, the default font kicks in. |
FONT versus TYPEFACE (32c)What is "TYPEFACE"? TYPEFACE (face, typestyle) is a design for a set of characters. Roughly, it refers to the shape of the characters. A couple common faces are: |
SIZE and SPACING OF FONTS (32d)What is the "SPACING" of a font? Characters can each take up the same width, or they can have different widths. In a fixed width font, "PITCH" refers to the number of characters that can fit in one inch. Common pitch values are 10 and 12. |
SIZE ATTRIBUTE FOR THE FONT TAG (32e)Here's what the sizes might look like to some users: |
ABSOLUTE versus RELATIVE SIZES (32f)
<FONT SIZE="-2"> ; you get size 5 - 2 = 3.
Type will never be displayed larger than 7 or smaller than 1. So, if the default size is 3 and you say <FONT SIZE="-4"> you
won't get size 3 - 4 = -1 (???) You will get the smallest available
size, which is size 1.
|
Printable version of Index Card 32a
Printable version of Index Card 32b
Printable version of Index Card 32c
Printable version of Index Card 32d
Printable version of Index Card 32e
Printable version of Index Card 32f
WORKSHEET #32:
http://www.idocs.com/tags/character_famsupp_92.html
(link is no longer valid)
<FONT>
tag, and is also an introduction to STYLE SHEETS. We'll be working through
their tutorial on style sheets in future lessons.
ASSIGNMENT #32: