Book description
"...lucid, in-depth descriptions of the behavior of every HTML tag on every major browser and platform, plus enough dry humor to make the book a pleasure to read."
--Edward Mendelson, PC Magazine
"When they say 'definitive' they're not kidding."
--Linda Roeder, About.com
Put everthing you need to know about HTML & XHTML at your fingertips. For nearly a decade, hundreds of thousands of web developers have turned to HTML & XHTML: The Definitive Guide to master standards-based web development. Truly a definitive guide, the book combines a unique balance of tutorial material with a comprehensive reference that even the most experienced web professionals keep close at hand. From basic syntax and semantics to guidelines aimed at helping you develop your own distinctive style, this classic is all you need to become fluent in the language of web design.
The new sixth edition guides you through every element of HTML and XHTML in detail, explaining how each element works and how it interacts with other elements. You'll also find detailed discussions of CSS (Cascading Style Sheets), which is intricately related to web page development. The most all-inclusive, up-to-date book on these languages available, this edition covers HTML 4.01, XHTML 1.0, and CSS2, with a preview of the upcoming XHTML2 and CSS3. Other topics include the newer initiatives in XHTML (XForms, XFrames, and modularization) and the essentials of XML for advanced readers. You'll learn how to:
- Use style sheets to control your document's appearance
- Work with programmatically generated HTML
- Create tables, both simple and complex
- Use frames to coordinate sets of documents
- Design and build interactive forms and dynamic documents
- Insert images, sound files, video, Java applets, and JavaScript programs
- Create documents that look good on a variety of browsers
The authors apply a natural learning approach that uses straightforward language and plenty of examples. Throughout the book, they offer suggestions for style and composition to help you decide how to best use HTML and XHTML to accomplish a variety of tasks. You'll learn what works and what doesn't, and what makes sense to those who view your web pages and what might be confusing. Written for anyone who wants to learn the language of the Web--from casual users to the full-time design professionals--this is the single most important book on HTML and XHTML you can own.
Bill Kennedy is chief technical officer of MobileRobots, Inc. When not hacking new HTML pages or writing about them, "Dr. Bill" (Ph.D. in biophysics from Loyola University of Chicago) is out promoting the company's line of mobile, autonomous robots that can be used for artificial intelligence, fuzzy logic research, and education.
Chuck Musciano began his career as a compiler writer and crafter of tools at Harris Corporations' Advanced Technology Group and is now a manager of Unix Systems in Harris' Corporate Data Center.
Publisher resources
Table of contents
- HTML & XHTML: The Definitive Guide, 6th Edition
- Dedication
- Preface
- 1. HTML, XHTML, and the World Wide Web
-
2. Quick Start
- 2.1. Writing Tools
- 2.2. A First HTML Document
- 2.3. Embedded Tags
- 2.4. HTML Skeleton
- 2.5. The Flesh on an HTML or XHTML Document
- 2.6. Text
- 2.7. Hyperlinks
- 2.8. Images Are Special
- 2.9. Lists, Searchable Documents, and Forms
- 2.10. Tables
- 2.11. Frames
- 2.12. Stylesheets and JavaScript
- 2.13. Forging Ahead
- 3. Anatomy of an HTML Document
-
4. Text Basics
- 4.1. Divisions and Paragraphs
- 4.2. Headings
- 4.3. Changing Text Appearance and Meaning
-
4.4. Content-Based Style Tags
- 4.4.1. The <abbr> Tag
- 4.4.2. The <acronym> Tag
- 4.4.3. The <cite> Tag
- 4.4.4. The <code> Tag
- 4.4.5. The <dfn> Tag
- 4.4.6. The <em> Tag
- 4.4.7. The <kbd> Tag
- 4.4.8. The <samp> Tag
- 4.4.9. The <strong> Tag
- 4.4.10. The <var> Tag
- 4.4.11. The class, style, id, and title Attributes
- 4.4.12. The dir and lang Attributes
- 4.4.13. Event Attributes
- 4.4.14. Summary of Content-Based Tags
- 4.4.15. Allowed Content
- 4.4.16. Allowed Usage
- 4.4.17. Combining Content-Based Styles
-
4.5. Physical Style Tags
- 4.5.1. The <b> Tag
- 4.5.2. The <big> Tag
- 4.5.3. The <blink> Tag (Obsolete Extension)
- 4.5.4. The <i> Tag
- 4.5.5. The <s> Tag (Deprecated)
- 4.5.6. The <small> Tag
- 4.5.7. The <strike> Tag (Deprecated)
- 4.5.8. The <sub> Tag
- 4.5.9. The <sup> Tag
- 4.5.10. The <tt> Tag
- 4.5.11. The <u> Tag (Deprecated)
- 4.5.12. The dir and lang Attributes
- 4.5.13. The class, style, id, and title Attributes
- 4.5.14. Event Attributes
- 4.5.15. Summary of Physical Style Tags
- 4.5.16. Allowed Content
- 4.5.17. Allowed Usage
- 4.5.18. Combining Physical Styles
- 4.6. Precise Spacing and Layout
- 4.7. Block Quotes
- 4.8. Addresses
- 4.9. Special Character Encoding
- 4.10. HTML’s Obsolete Expanded Font Handling
-
5. Rules, Images, and Multimedia
- 5.1. Horizontal Rules
-
5.2. Inserting Images in Your Documents
- 5.2.1. Understanding Image Formats
- 5.2.2. When to Use Images
- 5.2.3. When to Use Text
- 5.2.4. Speeding Image Downloads
- 5.2.5. JPEG, PNG, or GIF?
-
5.2.6. The <img> Tag
- 5.2.6.1. The src attribute
- 5.2.6.2. The lowsrc attribute
- 5.2.6.3. The alt and longdesc attributes
- 5.2.6.4. The align attribute
- 5.2.6.5. Wrapping text around images
- 5.2.6.6. Centering an image
- 5.2.6.7. Align and <center> are deprecated
- 5.2.6.8. The border attribute
- 5.2.6.9. Removing the image border
- 5.2.6.10. The height and width attributes
- 5.2.6.11. Resizing and flood-filling images
- 5.2.6.12. Problems with height and width
- 5.2.6.13. The hspace and vspace attributes
- 5.2.6.14. The ismap and usemap attributes
- 5.2.6.15. The class, dir, event, id, lang, style, and title attributes
- 5.2.6.16. The name, onAbort, onError, onLoad, and other event attributes
- 5.2.6.17. Combining <img> attributes
- 5.2.7. Video Extensions
-
5.3. Document Colors and Background Images
-
5.3.1. Additions and Extensions to the <body> Tag
- 5.3.1.1. The bgcolor attribute
- 5.3.1.2. The background attribute
- 5.3.1.3. The bgproperties attribute
- 5.3.1.4. The text attribute
- 5.3.1.5. The link, vlink, and alink attributes
- 5.3.1.6. The leftmargin attribute
- 5.3.1.7. The topmargin attribute
- 5.3.1.8. The style and class attributes
- 5.3.1.9. Mixing and matching body attributes
- 5.3.2. Extending a Warning
-
5.3.1. Additions and Extensions to the <body> Tag
- 5.4. Background Audio
- 5.5. Animated Text
- 5.6. Other Multimedia Content
-
6. Links and Webs
- 6.1. Hypertext Basics
- 6.2. Referencing Documents: The URL
-
6.3. Creating Hyperlinks
-
6.3.1. The <a> Tag
- 6.3.1.1. Allowed content
- 6.3.1.2. The href attribute
- 6.3.1.3. The name and id attributes
- 6.3.1.4. The event attributes
- 6.3.1.5. The rel and rev attributes
- 6.3.1.6. The style and class attributes
- 6.3.1.7. The lang and dir attributes
- 6.3.1.8. The target attribute
- 6.3.1.9. The title attribute
- 6.3.1.10. The charset, hreflang, and type attributes
- 6.3.1.11. The coords and shape attributes
- 6.3.1.12. The accesskey and tabindex attributes
- 6.3.2. Linking to Other Documents
- 6.3.3. Linking Within a Document
-
6.3.1. The <a> Tag
- 6.4. Creating Effective Links
-
6.5. Mouse-Sensitive Images
- 6.5.1. Server-Side Image Maps
- 6.5.2. Client-Side Image Maps
- 6.5.3. The <map> Tag
-
6.5.4. The <area> Tag
- 6.5.4.1. The alt attribute
- 6.5.4.2. The coords attribute
- 6.5.4.3. The href attribute
- 6.5.4.4. The nohref attribute
- 6.5.4.5. The notab, taborder, and tabindex attributes
- 6.5.4.6. The event attributes
- 6.5.4.7. The shape attribute
- 6.5.4.8. The target attribute
- 6.5.4.9. The title attribute
- 6.5.4.10. The class, dir, id, lang, and style attributes
- 6.5.5. A Client-Side Image-Map Example
- 6.5.6. Handling Other Browsers
- 6.5.7. Effective Use of Mouse-Sensitive Images
- 6.6. Creating Searchable Documents
- 6.7. Relationships
- 6.8. Supporting Document Automation
- 7. Formatted Lists
-
8. Cascading Style Sheets
- 8.1. The Elements of Styles
- 8.2. Style Syntax
- 8.3. Style Classes
-
8.4. Style Properties
- 8.4.1. Property Values
- 8.4.2. Property Inheritance
- 8.4.3. Font Properties
- 8.4.4. Font Selection and Synthesis
- 8.4.5. Color and Background Properties
-
8.4.6. Text Properties
- 8.4.6.1. The letter-spacing property
- 8.4.6.2. The line-height property
- 8.4.6.3. The text-align property
- 8.4.6.4. The text-decoration property
- 8.4.6.5. The text-indent property
- 8.4.6.6. The text-shadow property
- 8.4.6.7. The text-transform property
- 8.4.6.8. The vertical-align property
- 8.4.6.9. The word-spacing property
-
8.4.7. Box Properties
- 8.4.7.1. The CSS2 formatting model
- 8.4.7.2. The border properties
- 8.4.7.3. The border-color property
- 8.4.7.4. The border-width property
- 8.4.7.5. The border-style property
- 8.4.7.6. Borders in shorthand
- 8.4.7.7. The clear property
- 8.4.7.8. The clip property
- 8.4.7.9. The float property
- 8.4.7.10. The height property
- 8.4.7.11. The margin properties
- 8.4.7.12. The padding properties
- 8.4.7.13. The overflow property
- 8.4.7.14. The position properties
- 8.4.7.15. The visibility property
- 8.4.7.16. The width property
- 8.4.7.17. The z-index property
- 8.4.8. List Properties
- 8.4.9. Table Properties
- 8.4.10. Classification Properties
- 8.4.11. Generated Content Properties
- 8.4.12. Audio Properties
- 8.4.13. Paged Media
- 8.5. Tagless Styles: The <span> Tag
- 8.6. Applying Styles to Documents
-
9. Forms
- 9.1. Form Fundamentals
- 9.2. The <form> Tag
- 9.3. A Simple Form Example
- 9.4. Using Email to Collect Form Data
- 9.5. The <input> Tag
- 9.6. The <button> Tag
- 9.7. Multiline Text Areas
- 9.8. Multiple-Choice Elements
- 9.9. General Form-Control Attributes
- 9.10. Labeling and Grouping Form Elements
- 9.11. Creating Effective Forms
- 9.12. Forms Programming
-
10. Tables
- 10.1. The Standard Table Model
-
10.2. Basic Table Tags
-
10.2.1. The <table> Tag
- 10.2.1.1. The align attribute (deprecated)
- 10.2.1.2. The bgcolor and background attributes
- 10.2.1.3. The border attribute
- 10.2.1.4. The frame and rules attributes
- 10.2.1.5. The bordercolor, bordercolorlight, and bordercolordark attributes
- 10.2.1.6. The cellspacing attribute
- 10.2.1.7. The cellpadding attribute
- 10.2.1.8. Combining the border, cellspacing, and cellpadding attributes
- 10.2.1.9. The cols attribute
- 10.2.1.10. The valign and nowrap attributes
- 10.2.1.11. The width and height attributes
- 10.2.1.12. The summary attribute
- 10.2.1.13. The hspace and vspace attributes
- 10.2.2. Common Table Attributes
- 10.2.3. The <tr> Tag
-
10.2.4. The <th> and <td> Tags
- 10.2.4.1. The align and valign attributes
- 10.2.4.2. The width attribute
- 10.2.4.3. The height attribute
- 10.2.4.4. The colspan attribute
- 10.2.4.5. The rowspan attribute
- 10.2.4.6. Combining the colspan and rowspan attributes
- 10.2.4.7. The nowrap attribute
- 10.2.4.8. The bgcolor and background attributes
- 10.2.4.9. The bordercolor, bordercolorlight, and bordercolordark attributes
- 10.2.4.10. The char and charoff attributes
- 10.2.4.11. The headers and scope attributes
- 10.2.4.12. The abbr attribute
- 10.2.4.13. The axis attribute
- 10.2.5. The <caption> Tag
-
10.2.1. The <table> Tag
- 10.3. Advanced Table Tags
- 10.4. Beyond Ordinary Tables
- 11. Frames
-
12. Executable Content
- 12.1. Applets and Objects
-
12.2. Embedded Content
-
12.2.1. The <object> Tag
- 12.2.1.1. The classid attribute
- 12.2.1.2. The codebase attribute
- 12.2.1.3. The archive attribute
- 12.2.1.4. The codetype attribute
- 12.2.1.5. The data attribute
- 12.2.1.6. The type attribute
- 12.2.1.7. The align, class, border, height, hspace, style, vspace, and width attributes
- 12.2.1.8. The declare attribute
- 12.2.1.9. The id, name, and title attributes
- 12.2.1.10. The shapes and usemap attributes
- 12.2.1.11. The standby attribute
- 12.2.1.12. The tabindex and notab attributes
- 12.2.1.13. The dir and lang attributes
- 12.2.1.14. Object event handling
- 12.2.1.15. Supporting incompatible browsers
- 12.2.2. The <param> Tag
-
12.2.3. The <applet> Tag (Deprecated)
- 12.2.3.1. Applet rendering
- 12.2.3.2. The align attribute
- 12.2.3.3. The alt attribute
- 12.2.3.4. The archive attribute
- 12.2.3.5. The code and codebase attributes
- 12.2.3.6. The name attribute
- 12.2.3.7. The height, hspace, vspace, and width attributes
- 12.2.3.8. The mayscript attribute
- 12.2.3.9. The title attribute
- 12.2.3.10. The object attribute
- 12.2.4. The <embed> Tag (Extension)
- 12.2.5. The <noembed> Tag (Extension)
-
12.2.1. The <object> Tag
- 12.3. JavaScript
- 12.4. JavaScript Stylesheets (Antiquated)
- 13. Dynamic Documents
- 14. Mobile Devices
- 15. XML
- 16. XHTML
- 17. Tips, Tricks, and Hacks
- A. HTML Grammar
- B. HTML/XHTML Tag Quick Reference
- C. Cascading Style Sheet Properties Quick Reference
- D. The HTML 4.01 DTD
- E. The XHTML 1.0 DTD
- F. Character Entities
- G. Color Names and Values
-
H. Netscape Layout Extensions
- H.1. Creating Whitespace
- H.2. Multicolumn Layout
-
H.3. Layers
-
H.3.1. The <layer> Tag (Antiquated)
- H.3.1.1. The name attribute
- H.3.1.2. The left and top attributes
- H.3.1.3. The above, below, and z-index attributes
- H.3.1.4. The background and bgcolor attributes
- H.3.1.5. The visibility attribute
- H.3.1.6. The width attribute
- H.3.1.7. The src attribute
- H.3.1.8. The clip attribute
- H.3.1.9. The style and class attributes
- H.3.2. The <ilayer> Tag (Antiquated)
-
H.3.1. The <layer> Tag (Antiquated)
- Index
- Colophon
- Copyright
Product information
- Title: HTML & XHTML: The Definitive Guide, 6th Edition
- Author(s):
- Release date: October 2006
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596527327
You might also like
audiobook
The Design of Everyday Things
First, businesses discovered quality as a key competitive edge; next came science. Now, Donald A. Norman, …
book
You Don't Know JS: Up & Going
It’s easy to learn parts of JavaScript, but much harder to learn it completely—or even sufficiently—whether …
book
Strategic Writing for UX
When you depend on users to perform specific actions—like buying tickets, playing a game, or riding …
book
Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, 3rd Edition
Through a recent series of breakthroughs, deep learning has boosted the entire field of machine learning. …