Prev | Current Page 122 | Next

Craig Grannell

"The Essential Guide to CSS and HTML Web Design"

Typically, strong
emphasis
emboldens text in a visual web browser and emphasis italicizes
text.
Deprecated and nonstandard physical styles
Many physical elements are considered obsolete, including the infamous blink (a
Netscape ???innovation??? used to flash text on and off, amusingly still supported in Firefox).
Some physical styles are deprecated: u (underline) and s (strikethrough; also strike) have
CSS equivalents using the text-decoration property (text-decoration: underline and
text-decoration: line-through, respectively).
The big and small elements
The big and small elements are used to increase and decrease the size of inline text (even
text defined in pixels in CSS). An example of the use of small might be in marking up text
that is semantically small print. An example of big might be to denote that a drop cap is a
big character, or for when adding asterisks to required form fields.
*
Note, however, that the change in size depends on individual web browsers, so it??™s often
better to use span elements with a specific class relating to a font size defined in CSS (see
the section ???Creating alternatives with classes and spans??? later in the chapter), or ensure
that you define specific values in CSS for small and big elements when used in context.
Teletype, subscript, and superscript
This leaves three useful physical styles.


Pages:
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134