Sams Teach Yourself HTML 4 in 24 Hours
- Table of Contents
- Copyright
- About the Author
- Acknowledgments
- Tell Us What You Think!
- Put Your HTML Page Online Today
- I. Your First Web Page
- Hour 1. Understanding HTML and XML
- Hour 2. Create a Web Page Right Now
- Hour 3. Linking to Other Web Pages
- Hour 4. Publishing Your HTML Pages
- II. Web Page Text
- Hour 5. Text Alignment and Lists
- Hour 6. Text Formatting and Font Control
- Hour 7. Email Links and Links Within a Page
- Hour 8. Creating HTML Forms
- III. Web Page Graphics
- Hour 9. Creating Your Own Web Page Graphics
- Hour 10. Putting Graphics on a Web Page
- Hour 11. Custom Backgrounds and Colors
- Hour 12. Creating Animated Graphics
- IV. Web Page Design
- Hour 13. Page Design and Layout
- Hour 14. Graphical Links and Imagemaps
- Hour 15. Advanced Layout with Tables
- Hour 16. Using Style Sheets
- V. Dynamic Web Pages
- Hour 17. Embedding Multimedia in Web Pages
- Hour 18. Interactive Pages with Applets and ActiveX
- Hour 19. Web Page Scripting for Non-Programmers
- Hour 20. Setting Pages in Motion with Dynamic HTML
- VI. Building a Web Site
- Hour 21. Multipage Layout with Frames
- Hour 22. Organizing and Managing a Web Site
- Hour 23. Helping People Find Your Web Pages
- Hour 24. Planning for the Future of HTML
- VII. Appendixes
- A. Readers' Most Frequently Asked Questions
- B. HTML Learning Resources on the Internet
- C. Complete HTML 4 Quick Reference
- D. HTML Character Entities
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. |

Account Sign In
View your cart