Sams Teach Yourself HTML 4 in 24 Hours

Sams Teach Yourself HTML 4 in 24 Hours

By Dick Oliver

Summary

This hour showed you how to make text appear as boldface or italic, or with superscripts, subscripts, underlines, crossed-out text, special symbols, and accented letters. You saw how to make everything line up properly in preformatted passages of monospaced text and how to control the size, color, and typeface of any section of text on a Web page.

Table 6.3 summarizes the tags and attributes discussed in this hour. Don't feel like you have to memorize all these tags, by the way! That's why you have this book: You can look them up when you need them. Remember that all the HTML tags are listed in Appendix C, "Complete HTML 4 Quick Reference," and all the special character codes can be found in Appendix D.

Table 6.3. HTML Tags and Attributes Covered in Hour 6

Tag Attribute Function
<em>…</em>   Emphasis (usually italic).
<strong>…</strong>   Stronger emphasis (usually bold).
<b>…</b>   Boldface text.
<i>…</i>   Italic text.
<tt>…</tt>   Typewriter (monospaced) font.
<pre>…</pre>   Preformatted text (exact line endings and spacing will be preserved—usually rendered in a monospaced font).
<big>…</big>   Text is slightly larger than normal.
<small>…</small>   Text is slightly smaller than normal.
<sub>…</sub>   Subscript.
<sup>…</sup>   Superscript.
<strike>…</strike>   Puts a strikethrough in text.
<font>…</font>   Controls the appearance of the enclosed text.
  size="&hellip" The size of the font, from 1 to 7. Default is 3. Can also be specified as a value relative to the current size; for example, +2 or -1.
  color="&hellip" Changes the color of the text.
  face="&hellip" Name of font to use if it can be found on the user's system. Commas can separate multiple font names, and the first font on the list that can be found will be used.

Share ThisShare This

Informit Network