August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.tags.tagName.fontSize
The fontSize property specifies the size of fonts used by an element when associated with the tag called tagName. The values that can be used to set font size can be divided into four categories as shown in Table 7.21.
| Category | Value |
|---|---|
| Absolute | xx-small |
| x-small | |
| small | |
| medium | |
| large | |
| x-large | |
| xx-large | |
| Relative | smaller (relative font size of parent) |
| larger (relative font size of parent) | |
| Length | A number followed by a unit of measurement. |
| Percentage | The size relative to font size of parent. |
Listing 7.176 uses absolute font sizing to define the fontSize property and associate it with text.
Read now
Unlock full access