HTML and its XML-based derivative, XHTML, are the fundamental languages for working on the web, and the new edition of our popular HTML guide offers web developers a better way to become fluent in these languages. HTML & XHTML: The Definitive Guide , 5th Edition is the most comprehensive, up-to-date book available on HTML and XHTML. It covers Netscape Navigator 6, Internet Explorer 6, HTML 4.01, XHTML 1.0, CSS2, and all of the features supported by the popular web browsers. In HTML & XHTML: The Definitive Guide , the authors cover every element of HTML/XHTML in detail, explaining how each element works and how it interacts with other elements. Tips about HTML/XHTML style help you write documents ranging from simple online documentation to complex presentations. With hundreds of examples, the book gives you models for writing your own effective web pages and for mastering advanced features like style sheets and frames. Cover 1 Table of Contents 2 Copyright 6 Dedication 7 PREFACE 8 Our Audience 9 Text Conventions 10 Versions and Semantics 12 HTML Versus XHTML 13 Comments and Questions 15 Acknowledgments 16 Chapter 1. HTML, XHTML, and the World Wide Web 17 Section 1.1. The Internet 18 Section 1.2. Talking the Internet Talk 20 Section 1.3. HTML and XHTML: What They Are 23 Section 1.4. HTML and XHTML: What They Aren't 24 Section 1.5. Standards and Extensions 25 Section 1.6. Tools for the Web Designer 27 Chapter 2. Quick Start 29 Section 2.1. Writing Tools 30 Section 2.2. A First HTML Document 31 Section 2.3. Embedded Tags 33 Section 2.4. HTML Skeleton 34 Section 2.5. The Flesh on an HTML or XHTML Document 35 Section 2.6. Text 36 Section 2.7. Hyperlinks 39 Section 2.8. Images Are Special 42 Section 2.9. Lists, Searchable Documents, and Forms 44 Section 2.10. Tables 46 Section 2.11. Frames 47 Section 2.12. Style Sheets and JavaScript 48 Section 2.13. Forging Ahead 50 Chapter 3. Anatomy of an HTML Document 51 Section 3.1. Appearances Can Deceive 52 Section 3.2. Structure of an HTML Document 53 Section 3.3. Tags and Attributes 54 Section 3.4. Well-Formed Documents and XHTML 57 Section 3.5. Document Content 58 Section 3.6. HTML/XHTML Document Elements 60 Section 3.7. The Document Header 63 Section 3.8. The Document Body 66 Section 3.9. Editorial Markup 68 Section 3.10. The Tag 71 Chapter 4. Text Basics 72 Section 4.1. Divisions and Paragraphs 73 Section 4.2. Headings 79 Section 4.3. Changing Text Appearance and Meaning 84 Section 4.4. Content-Based Style Tags 85 Section 4.5. Physical Style Tags 91 Section 4.6. Precise Spacing and Layout 95 Section 4.7. Block Quotes 106 Section 4.8. Addresses 109 Section 4.9. Special Character Encoding 111 Section 4.10. HTML's Obsolete Expanded Font Handling 112 Chapter 5. Rules, Images, and Multimedia 117 Section 5.1. Horizontal Rules 118 Section 5.2. Inserting Images in Your Documents 125 Section 5.3. Document Colors and Background Images 145 Section 5.4. Background Audio 151 Section 5.5. Animated Text 153 Section 5.6. Other Multimedia Content 156 Chapter 6. Links and Webs 158 Section 6.1. Hypertext Basics 159 Section 6.2. Referencing Documents: The URL 160 Section 6.3. Creating Hyperlinks 172 Section 6.4. Creating Effective Links 179 Section 6.5. Mouse-Sensitive Images 183 Section 6.6. Creating Searchable Documents 192 Section 6.7. Relationships 195 Section 6.8. Supporting Document Automation 199 Chapter 7. Formatted Lists 202 Section 7.1. Unordered Lists 203 Section 7.2. Ordered Lists 206 Section 7.3. The
Tag 209 Section 7.4. Nesting Lists 212 Section 7.5. Definition Lists 215 Section 7.6. Appropriate List Usage 219 Section 7.7. Directory Lists 220 Section 7.8. Menu Lists 222 Chapter 8. Cascading Style Sheets 224 Section 8.1. The Elements of Styles 225 Section 8.2. Style Syntax 233 Section 8.3. Style Classes 237 Section 8.4. Style Properties 242 Section 8.5. Tagless Styles: The Tag 281 Section 8.6. Applying Styles to Documents 282 Chapter 9. Forms 284 Section 9.1. Form Fundamentals 285 Section 9.2. The Tag 286 Section 9.3. A Simple Form Example 292 Section 9.4. Using Email to Collect Form Data 294 Section 9.5. The Tag 296 Section 9.6. The Tag 305 Section 9.7. Multiline Text Areas 307 Section 9.8. Multiple Choice Elements 309 Section 9.9. General Form-Control Attributes 313 Section 9.10. Labeling and Grouping Form Elements 316 Section 9.11. Creating Effective Forms 319 Section 9.12. Forms Programming 323 Chapter 10. Tables 330 Section 10.1. The Standard Table Model 331 Section 10.2. Basic Table Tags 333 Section 10.3. Advanced Table Tags 346 Section 10.4. Beyond Ordinary Tables 357 Chapter 11. Frames 358 Section 11.1. An Overview of Frames 359 Section 11.2. Frame Tags 360 Section 11.3. Frame Layout 362 Section 11.4. Frame Contents 367 Section 11.5. The Tag 370 Section 11.6. Inline Frames 372 Section 11.7. Named Frame or Window Targets 374 Chapter 12. Executable Content 378 Section 12.1. Applets and Objects 379 Section 12.2. Embedded Content 381 Section 12.3. JavaScript 394 Section 12.4. JavaScript Style Sheets (Antiquated) 400 Chapter 13. Dynamic Documents 406 Section 13.1. An Overview of Dynamic Documents 407 Section 13.2. Client-Pull Documents 408 Section 13.3. Server -Push Documents 412 Chapter 14. Netscape Layout Extensions 416 Section 14.1. Creating Whitespace 417 Section 14.2. Multicolumn Layout 421 Section 14.3. Layers 426 Chapter 15. XML 436 Section 15.1. Languages and Metalanguages 437 Section 15.2. Documents and DTDs 439 Section 15.3. Understanding XML DTDs 440 Section 15.4. Element Grammar 443 Section 15.5. Element Attributes 447 Section 15.6. Conditional Sections 449 Section 15.7. Building an XML DTD 450 Section 15.8. Using XML 452 Chapter 16. XHTML 454 Section 16.1. Why XHTML? 455 Section 16.2. Creating XHTML Documents 457 Section 16.3. HTML Versus XHTML 460 Section 16.4. XHTML 1.1 464 Section 16.5. Should You Use XHTML? 466 Chapter 17. Tips, Tricks, and Hacks 468 Section 17.1. Top of the Tips 469 Section 17.2. Cleaning Up After Your HTML Editor 470 Section 17.3. Tricks with Tables 475 Section 17.4. Transparent Images 482 Section 17.5. Tricks with Windows and Frames 484 Appendix A. HTML Grammar 487 Section A.1. Grammatical Conventions 488 Section A.2. The Grammar 490 Appendix B. HTML/XHTML Tag Quick Reference 497 Section B.1. Core Attributes 498 Section B.2. HTML Quick Reference 500 Appendix C. Cascading Style Sheet Properties Quick Reference 520 Appendix D. The HTML 4.01 DTD 527 Appendix E. The XHTML 1.0 DTD 557 Appendix F. Character Entities 589 Appendix G. Color Names and Values 594 Section G.1. Color Values 595 Section G.2. Color Names 596 Section G.3. The Standard Color Map 598 Colophon 599 Index 600 SYMBOL 601 index_A 602 index_B 605 index_C 607 index_D 611 index_E 614 index_F 616 index_G 618 index_H 619 index_I 622 index_J 625 index_K 626 index_L 627 index_M 629 index_N 631 index_O 633 index_P 635 index_Q 638 index_R 639 index_S 640 index_T 644 index_U 647 index_V 648 index_W 649 index_X 651 index_Z 652 HTML and its XML-based descendant, XHTML, are the fundamental languages for working on the web, and the new edition of our popular HTML guide offers web developers a better way to become fluent in these languages. HTML & XHTML: The Definitive Guide, 5th Edition is the most comprehensive, up-to-date book available on HTML and XHTML. It covers Netscape Navigator 6, Internet Explorer 6, HTML 4.01, XHTML 1.0, CSS2, and all of the features supported by the popular web browsers.Learning HTML and XHTML is like learning any new language. Most students first immerse themselves in examples. Studying others is a natural way to learn; however, it's as easy to learn bad habits through imitation as it is to acquire good ones. The better way to become HTML-fluent is through a comprehensive reference that covers the language syntax, semantics, and variations in detail and demonstrates the difference between good and bad usage.In HTML & XHTML: The Definitive Guide, the authors cover every element of HTML/XHTML in detail, explaining how each element works and how it interacts with other elements. Tips about HTML/XHTML style help you write documents ranging from simple online documentation to complex presentations. With hundreds of examples, the book gives you models for writing your own effective web pages and for mastering advanced features like style sheets and frames.HTML & XHTML: The Definitive Guide, 5th Edition, shows how to:Use style sheets to control a document's appearanceWork with programmatically generated HTMLCreate tables, from simple to complexUse frames to coordinate sets of documentsDesign and build interactive forms and dynamic documentsInsert images, sound files, video, Java applets, and JavaScript programsCreate documents that look good on a variety of browsersMake the transition to XHTMLThe book comes with a handy quick-reference card listing HTML/XHTML tags. An updated guide to the language of the World Wide Web covers formatting, tables, cascading style sheets, special effects, and Web page development.