Presentational Elements
There are a handful of (X)HTML elements that are explicitly presentation oriented. Sometimes called “physical” styles, they provide instructions for the size, weight, or style of the font used to display the element.
If you’ve been paying attention, you already know that Cascading Style Sheets are now the preferred way to specify presentation instructions. Table 10-2 lists the presentational inline elements, along with the preferred alternative for achieving the same visual effect.
Table 10-2. Presentational inline elements and style sheet alternatives
|
Element |
Description |
Alternative |
|---|---|---|
|
|
Bold |
Use the font-weight: bold |
|
|
Big |
Use a relative font-size: bigger |
|
|
Italic |
Use the font-style: italic |
|
|
Strike-through |
Use the text-decoration: line-through |
|
|
Small |
Use a relative font-size: smaller |
|
|
Strike-through |
Use the text-decoration: line-through |
|
|
Teletype |
Use the font-family: "Andale ... |