Synopses & Reviews
As both the Web and the browsers used to navigate it mature, work-arounds that compensate for the myriad factors that affect Web page appearance no longer cut it. Users expect Web pages to look beautiful regardless
--and with the Fifth Edition
of this popular Visual QuickStart Guide,
you can make your
Web pages comply. By following the generously illustrated, step-by-step instructions that are the hallmark of the Visual QuickStart series, you'll create beautiful code that works consistently across browser versions and platforms (including hand-held devices and cell phones) in no time.
This updated edition includes a new section on foreign-language and multilingual Web sites as well as ample coverage on how the use of HTML is changing. What hasn't changed, however, is the book's popular format: Task-oriented, step-by-step instruction that builds on your growing knowledge. Info-packed appendixes, a comprehensive index, and plenty of screen shots and code examples make HTML for the World Wide Web, Fifth Edition, with XHTML and CSS: Visual QuickStart Guide a must-have reference. Whether you're just getting your feet wet (no prior HTML knowledge is required) or design Web sites for a living, you'll turn to this best-selling guide again and again for answers to all of your HTML-related questions.
As both the Web itself and the browsers used to navigate it mature, work-arounds that compensate for the myriad factors that affect Web page appearances no longer cut it. With this popular Visual QuickStart Guide, readers can make their Web pages comply by following the generously illustrated, step-by-step instructions here.
Need to learn HTML fast? This best-selling reference's visual format and step-by-step, task-based instructions will have you up and running with HTML in no time. In this completely updated edition of our best-selling guide to HTML, Web expert and best-selling author Elizabeth Castro uses crystal-clear instructions and friendly prose to introduce you to all of today's HTML and XHTML essentials. You’ll learn how to design, structure, and format your Web site. You'll create and use images, links, styles, lists, tables, frames, and forms, and you'll add sound and movies to your site. Finally, you will test and debug your site, and publish it to the Web. Along the way, you'll find extensive coverage of CSS techniques, current browsers (Opera, Safari, Firefox), creating pages for the mobile Web, and more.
Visual QuickStart Guide--the quick and easy way to learn!
- Easy visual approach uses pictures to guide you through HTML and show you what to do.
- Concise steps and explanations get you up and running in no time.
- Page for page, the best content and value around.
- Companion Web site at www.cookwood.com/html offers examples, a lively question-and-answer area, updates, and more.
About the Author
Elizabeth Castro has written all five best-selling editions of HTML for the World Wide Web: Visual QuickStart Guide. She is also author of Perl and CGI for the World Wide Web: Visual QuickStart Guide and XML for the World Wide Web: Visual QuickStart Guide—both best-sellers! Liz was the technical editor for Peachpit’s The Macintosh Bible, Fifth Edition, and she founded Pagina Uno, a publishing house in Barcelona, Spain.
Table of Contents
The Internet, the Web, and HTML. Open but Not Equal. The Browser Wars. The Push for Standards. The Real World. What Should Your Use? How This Books Works. The HTML VQS Web Site.
1. Web Page Building Blocks.
Markup: Elements, Attributes, and Values. A Web Page's Text Content. Links, Images and Other Non-Text Content. File Names. URLs. HTML vs XHTML. Versions, Flavors, and DOCTYPE. The Default Display of (X)HTML. Adding Style to Your Web Pages. The Cascade: When Rules Collide. A Property's Value.
2. Working with Web Page Files.
Designing Your Site. Creating a New Web Page. Saving Your Web Page. About Microsoft Word and Web Pages. Specifying a Default or “Home” Page. Editing Web Pages. Organizing Files. Viewing Your Page in a Browser. The Inspiration of Others.
3. Basic (X)HTML Structure.
Starting Your Web Page. Creating the Foundation. Declaring the Encoding. Creating a Title. Creating Section Headers. Starting a New Paragraph. Naming Elements. Breaking Up a Page into Divisions. Creating Inline Spans. Creating a Line Break. Adding Comments. Labeling Elements in a Web Page.
4. Basic (X)HTML Formatting.
Making Text Bold or Italic. Changing the Size of Text. Using a Monospaced Front. Using Preformatted Text. Quoting Text. Creating Superscripts and Subscripts. Marking Changed Text. Explaining Abbreviations.
5. Creating Web Images.
About Images for the Web. Getting Images. The Save for Web Command. Making Images Smaller. Creating Transparency. Saving Images with Transparency. Simulating Transparency. Using (Mostly) Browser Safe Colors. Reducing the Number of Colors. Showing Images Progressively. Blurring Images to Aid JPEG Compression. Creating Animated GIFs.
6. Using Images.
Inserting Images on a Page. Offering Alternate Text. Specifying Size for Speedier Viewing. Scaling an Image. Linking Thumbnails to Images. Making Images Float. Stopping Elements from Wrapping. Adding Space around an Image. Aligning Images. Adding Horizontal Rules.
Creating a Link to Another Web Page. Creating Anchors. Linking to a Specific Anchor. Targeting Links to Specific Windows. Setting the Default Target. Creating Other Kinds of Links. Creating Keyboard Shortcuts for Links. Setting the Tab Order for Links. Using Images to Label Links. Dividing and Image into Clickable Regions. Creating a Client-Side Image Map. Using a Server-Side Image Map.
8. Creating Styles.
Constructing a Style Rule. Constructing Selectors. Selecting Elements by Name. Selecting Elements by Class or ID. Selecting Elements by Context. Selecting Link Elements Based on Their State. Selecting Part of an Element. Selecting Elements Based on Attributes. Specifying Groups of Elements. Combining Selectors.
9. Applying Styles.
Creating an External Style Sheet. Linking External Style Sheets. Offering Alternate Style Sheets. Creating an Internal Style Sheet. Importing External Style Sheets. Applying Style Locally. The Importance of Location. Adding Comments to Style Rules.
10. Formatting with Styles.
Choosing a Font Family. Embedding Fonts on a Page. Creating Italics. Applying Bold Formatting. Setting the Font Size. Setting the Line Height. Setting All Font Values at Once. Setting the Text Color. Changing the Text's Background. Controlling Spacing. Adding Indents. Setting White Space Properties. Aligning Text. Changing the Text Case. Using Small Caps. Decorating Text.
11. Layout with Styles.
Structuring Your Pages. The Box Model. Displaying and Hiding Elements. Positioning Elements Absolutely. Affixing an Element to the Browser Window. Offsetting Elements in the Natural Flow. Changing the Background. Changing the Foreground Color. Changing the Cursor. Setting the Border. Adding Padding around an Element. Setting the Margins around an Element. Setting the Height or Width for an Element. Positioning Elements in 3D. Determining Where Overflow Should Go. Making Elements Float. Controlling Where Elements Float. Aligning Elements Vertically.
12. Style Sheets for Printing.
Using Media-Specific Style Sheets. How Print Style Sheets Differ. Controlling Page Breads. Other Print Specific CSS Properties.
Creating Ordered and Unordered Lists. Choosing Your Markers (Bullets). Choosing Where to Start List Numbering. Using Custom Markers. Controlling Where Markers Hang. Setting All List-Style Properties at Once. Creating Definition Lists. Styling Nested Lists.
Mapping Out Your Page. Creating a Simple Table. Adding a Border. Setting the Width. Centering a Table on the Page. Wrapping Text around a Table. Combining Tables. Aligning a Cell's Contents. Changing the Background. Controlling the Space. Spanning a Cell across Columns. Spanning a Cell across Rows. Dividing Your Table into Column Groups. Dividing the Table into Horizontal Sections. Choosing Which Borders to Display. Controlling Line Breaks in a Cell. Speeding up Table Display.
Creating a Simple Frameset. Creating Frames in Columns. Creating Frames in Rows and Columns. Combining Framesets. Creating an Inline Frame. Adjusting a Frame's Margins. Showing or Hiding Scroll Bars. Adjusting the Color of the Borders. Adjusting the Frame Borders. Keeping Visitors from Resizing Frames. Targeting Links to Particular Frames. Targeting Links to Special Spots. Changing the Default Target. Nesting Framesets. Offering Alternatives to Frames. Embedding Content with Objects. Making Frames More Accessible.
About CGI Scripts. Getting a Script. Using the Scripts Included with This Book. Preparing a Script. Creating a Form. Sending Form Data via E-mail. Using a Form Hosting Service. Creating Text Boxes. Creating Password Boxes. Creating Radio Buttons. Creating Checkboxes. Creating Menus. Creating Larger Text Areas. Allowing Visitors to Upload Files. About Hidden Fields. Adding Hidden Fields to a Form. Creating the Submit Button. Resetting the Form. Using an Image to Submit Data. Organizing the Form Elements. Formally Labeling Form Parts. Setting the Tab Order in a Form. Adding Keyboard Shortcuts. Disabling Form Elements. Keeping Elements from Being Changed.
Of Plugins and Players. Getting Players for Your Visitors. Getting Multimedia Files. Embedding QuickTime Movies. Scaling a QuickTime Movie. Looping a QuickTime Movie. Putting QuickTime Sounds on a Page. Hiding QuickTime Sounds. Embedding Windows Media Player Files. Inserting Java Applets. Embedding Other Multimedia Files. Linking to Multimedia Files. Creating an Automatic Slide Show. Creating a Marquee. Adding Background Sound.
Adding an “Automatic” Script. Calling an External Automatic Script. Triggering a Script. Creating a Button that Executes a Script. Adding Alternate Information. Hiding Scripts from Older Browsers. Hiding Scripts from XML Parsers. Setting the Default Scripting Language.
Adding the Current Date and Time. Changing a Link's Status Label. Changing Multiple Frames with One Link. Keeping Frames in Their Framesets. Changing an Image When a Visitor Points. Loading Images into Cache. Controlling a New Window's Size.
20. Symbols and Non-English Characters.
About Character Encodings. Saving Your Page with the Proper Encoding. Editing a Page with the Proper Encoding. Declaring Your Page's Character Encoding. Adding Character from Outside the Encoding. Specifying Your Page's Language.
21. Formatting: The Old Way.
Choosing Default Characteristics for Text. Formatting Bits of Text. Another Way to Choose Default Colors. Changing the Color of Links. Striking Out or Underlining Text. Making Text Blink.
22. Layout: The Old Way.
Using Background Color. Using Background Images. Centering Elements on a Page. Specifying the Margins. Keeping Lines Together. Creating Discretionary Line Breaks. Specifying the Space Between Paragraphs. Creating Indents. Creating Indents (with Lists). Creating Blocks of Space. Using Pixel Shims. Creating Columns. Positioning Elements with Layers.
23. WML: Web Pages for Mobile Devices.
Preparing Your Sever. Starting Your WML Page. Creating a Card. Creating Basic Content. Including an Image. Creating a Table. Creating a Link. Programming Buttons. Creating Conditional Actions. Scheduling an Action. Making a Call. Setting and Using Variables. Creating Input Boxes. Creating Menus. Processing Data from Visitors. Creating Elements on Multiple Pages. Restricting Access to a Deck. Testing WML Pages.
24. Testing and Debugging Web Pages.
Validating Your Code. Checking the Easy Stuff: HTML. Checking the Easy Stuff: XHTML. Checking the Easy Stuff: CSS. Testing Your Page. When the Browser Displays the Code. When Images Don't Appear. Differences from Browser to Browser. When Nothing Appears in Netscape 4. Still Stuck?
25. Publishing Your Pages on the Web.
Finding a Host for Your Site. Getting Your Own Domain Name. Transferring Files to the Server. Transferring Files to AOL.
26. Getting People to Visit.
About Keywords. Explicitly Listing Keywords. Providing a Description of Your Page. Controlling Other Information. Keeping Visitors Away. Keeping Pages from Being Archived. Creating a Crawler Page. Submitting Your Site to a Search Engine. Improving your Ranking by Getting Linked. Writing Pages that Are Easy to Index. Other Techniques for Publicizing Your Site.
Appendix A: (X)HTML Elements and Attributes.
Appendix B: CSS Properties and Values.
Appendix C: Intrinsic Events.
Appendix D: (X)HTML Symbols and Characters.
Appendix E. Hexadecimals.
Appendix F: (X)HTML Tools.
(X)HTML Editors. Images and Graphics. Graphics Tools.