Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. HTML in 10 Simple Steps or Less Robert G. Fuller and Laurie Ann Ulrich Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. HTML in 10 Simple Steps or Less Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. HTML in 10 Simple Steps or Less Robert G. Fuller and Laurie Ann Ulrich Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. HTML in 10 Simple Steps or Less Published by Wiley Publishing, Inc. 10475 Crosspoint Boulevard Indianapolis, IN 46256 www.wiley.com Copyright © 2004 by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada ISBN: 0-7645-4123-4 Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 1O/QV/RS/QT/IN No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sec- tions 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Cen- ter, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8700. Requests to the Publisher for permission should be addressed to the Legal Department, Wiley Publishing, Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4447, E-mail: permcoordinator@wiley.com. Limit of Liability/Disclaimer of Warranty: While the publisher and author have used their best efforts in preparing this book, they make no representations or warranties with respect to the accuracy or completeness of the contents of this book and specifically disclaim any implied warranties of merchantability or fitness for a par- ticular purpose. No warranty may be created or extended by sales representatives or written sales materials. The advice and strategies contained herein may not be suitable for your situation. You should consult with a profes- sional where appropriate. Neither the publisher nor author shall be liable for any loss of profit or any other com- mercial damages, including but not limited to special, incidental, consequential, or other damages. For general information on our other products and services or to obtain technical support, please contact our Cus- tomer Care Department within the U.S. at (800) 762-2974, outside the U.S. at (317) 572-3993 or fax (317) 572-4002. Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic books. Library of Congress Cataloging-in-Publication Data Fuller, Robert, 1966- HTML in 10 simple steps or less / Robert Fuller and Laurie Ulrich. p. cm. Includes index. ISBN 0-7645-4123-4 1. HTML (Document markup language) I. Title: HTML in ten simple steps or less. II. Ulrich, Laurie Ann. III. Title. QA76.76.H94 F84 2003 006.7'4 dc22 2003020606 Trademarks: Wiley, the Wiley Publishing logo and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates, in the United States and other countries, and may not be used without written permission. Amazon.com is the registered trademark of Amazon.com, Inc. TextWrangler, Super Get Info, the Bare Bones Software Logo, BBEdit, Mailsmith, and “It Doesn’t Suck” are trademarks or registered trademarks of BareBones Software, Inc. All other trademarks are the property of their respective owners. Wiley Publishing, Inc., is not associated with any product or vendor mentioned in this book. Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. This book is dedicated to Mickey Kaigler. He knows why . . . Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. Credits Acquisitions Editor Jim Minatel Development Editor Adaobi Obi Tulton Technical Editor Will Kelly Copy Editor Stefan Gruenwedel Editorial Manager Kathryn Malm Vice President & Executive Group Publisher Richard Swadley Vice President and Executive Publisher Robert Ipsen Vice President and Publisher Joseph B. Wikert Executive Editorial Director Mary Bednarek Project Coordinator April Farling Graphics and Production Specialists Joyce Haughey, Jennifer Heleine, LeAndra Hosier, Lynsey Osborn, Heather Pope Quality Control Technicians John Greenough, Susan Moritz, Charles Spencer Book Designer Kathie S. Schnorr Proofreader Christine Pingleton Indexer Johnna VanHoose Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. About the Authors Robert G. Fuller used to work in the Tech Sector of Corporate America. Realizing this was a big mis- take, he left and began sharing what he knew with anyone who’d listen. He writes when the mood suits him, teaches wherever he can find students who are interested, and every now and again offers his skills to worthy causes. You can reach him at robert@highstrungproductions.com. Laurie Ulrich is the author and coauthor of more than 25 books on computer software, with specific topics ranging from Office to Photoshop to Web Design. Teaching people to use computers since the 1980s, Laurie has taught more than 10,000 people to use their computers more creatively and with greater confidence. She also runs her own firm, Limehat & Company, Inc., offering general computer consulting and Web design services to growing companies and non-profit organizations. You can find out more about Laurie’s books and other interests at www.planetlaurie.com. Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. [...]... About the Authors vii Introduction ix Acknowledgments Part 1: HTML Document Structure Task 1: How to Write a Tag Task 2: Structuring an HTML Document Task 3: Defining Meta Tag Keywords Task 4: Defining Meta Tag Descriptions Task 5: Defining the Author of a Document Using Meta Tags Task 6: Defining Meta Tag Expiration Dates Task 7: Refreshing Page Content Using Meta Tags Task 8: Defining Meta Tag Robot... 9: Controlling the Document Background Task 10: Working with Source Code in the Browser Part 2: Working with Text Task 11: Working with Headings Task 12: Working with Paragraphs Task 13: Applying Fonts Task 14: Setting the Font Size Task 15: Setting the Font Color Task 16: Applying Physical Styles Task 17: Applying Logical Styles Task 18: Inserting Character Entities Task 19: Using the Preformatted Text... Task 35: Embedding Audio Files Task 36: Adding Background Sounds Task 37: Embedding Video Task 38: Embedding Java Applets Part 5: Hyperlinks Task 39: Defining Hyperlinks Task 40: Defining Pathnames Task 41: Creating mailto Links Task 42: Linking to Named Anchors Part 6: Building Tables Task 43: Defining Tables Task 44: Working with Table Borders Task 45: Spanning Cells Task 46: Aligning Table Elements... Formatting Text Fields Task 53: Formatting Password Fields Task 54: Formatting Text Areas Task 55: Formatting Check Boxes Task 56: Formatting Radio Buttons Task 57: Formatting Selection Menus Task 58: Formatting Selection Lists Task 59: Formatting File Fields Task 60: Formatting Submit and Reset Buttons Task 61: Using Graphic Images for Submit Buttons Task 62: Using Hidden Fields Task 63: Specifying... Specifying the Focus Order of Form Controls Task 64: Using Field Sets Part 8: Working with Frames Task 65: Defining Frameset Documents Task 66: Specifying Frame Dimensions Task 67: Specifying Border Properties Task 68: Controlling Frame Margins and Scroll Bars Task 69: Nesting Framesets Task 70: Targeting Frames Task 71: Providing noframes Content Task 72: Working with Inline Frames Part 9: Cascading Style Sheets... 47: Defining Dimensions for Table Elements Task 48: Working with Table Background Properties Task 49: Nesting Tables Task 50: Organizing Table Data Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark 44 46 48 50 52 54 56 58 61 62 64 66 68 70 72 75 76 78 80 82 85 86 88 90 92 95 96 98 100 102 104 106 108 110 Contents xvii Part 7: Working with Forms 113 Task 51: Defining Form Elements... 73: Writing Style Rules Task 74: Creating an Embedded Style Sheet Task 75: Creating an External Style Sheet Task 76: Defining Style Classes Task 77: Defining the font-family Property Task 78: Defining the font-size Property with Keywords Task 79: Defining the font-size Property with Lengths Task 80: Working with Font Styling Task 81: Using the Font Property Shorthand Task 82: Working with Foreground... Modifying Bullet Styles Task 27: Nesting Lists Task 28: Creating Definition Lists Part 3: Working with Images Task 29: Inserting Images Task 30: Controlling Image Alignment and Spacing Task 31: Resizing Images Using Photoshop Elements Task 32: Optimizing GIF Images Using Photoshop Elements Task 33: Optimizing JPEG Images Using Photoshop Elements Task 34: Optimizing PNG Images Using Photoshop Elements Part 4:... the right tool for the job More robust programs offer advantages that make learning HTML easy Just as a full-featured word processor makes it easy to write letters, term papers, and books — compared with using Notepad or SimpleText — an HTML code editor makes it easy to generate code properly and build robust Web pages For example, most HTML editors feature syntax-checking and code-coloring Because they... colors to different functional parts of the code so that you can easily spot errors (mostly caused by typos) and fix them Each major operating system — Windows, Macintosh, and UNIX/Linux — offers a number of HTML editors that cost anywhere from nothing to over $100 (But as we said earlier, you get what you pay for.) We review here some of the more popular editors available on each platform Later on in . Hyperlinks 85 Task 39: Defining Hyperlinks 86 Task 40: Defining Pathnames 88 Task 41: Creating mailto Links 90 Task 42: Linking to Named Anchors 92 Part 6: Building Tables 95 Task 43: Defining. Defining Form Elements 114 Task 52: Formatting Text Fields 116 Task 53: Formatting Password Fields 118 Task 54: Formatting Text Areas 120 Task 55: Formatting Check Boxes 122 Task 56: Formatting. Tables 96 Task 44: Working with Table Borders 98 Task 45: Spanning Cells 100 Task 46: Aligning Table Elements 102 Task 47: Defining Dimensions for Table Elements 104 Task 48: Working with Table Background