01_589172 ffirs.qxd 4/22/05 3:21 PM Page iii HTML 4 FOR DUMmIES ‰ 5 TH EDITION by Ed Tittel and Mary C.Burmeister 01_589172 ffirs.qxd 4/22/05 3:21 PM Page ii 01_589172 ffirs.qxd 4/22/05 3:21 PM Page i HTML 4 FOR DUMmIES ‰ 5 TH EDITION 01_589172 ffirs.qxd 4/22/05 3:21 PM Page ii 01_589172 ffirs.qxd 4/22/05 3:21 PM Page iii HTML 4 FOR DUMmIES ‰ 5 TH EDITION by Ed Tittel and Mary C.Burmeister 01_589172 ffirs.qxd 4/22/05 3:21 PM Page iv HTML 4 For Dummies, 5th Edition Published by Wiley Publishing, Inc. 111 River Street Hoboken, NJ 07030-5774 www.wiley.com Copyright © 2005 by Wiley Publishing, Inc., Indianapolis, Indiana Published by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada 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 permit- ted under Sections 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 Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. 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-4355, or online at http://www.wiley.com/go/permissions. Trademarks:Wiley, the Wiley Publishing logo, For Dummies, the Dummies Man logo, A Reference for the Rest of Us!, The Dummies Way, Dummies Daily, The Fun and Easy Way, Dummies.com, 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. [Insert third party trade- marks from book title or included logos here.] 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. LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: THE PUBLISHER AND THE AUTHOR MAKE NO REP- RESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CON- TENTS OF THIS WORK AND SPECIFICALLY DISCLAIM ALL WARRANTIES, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE. NO WARRANTY MAY BE CRE- ATED OR EXTENDED BY SALES OR PROMOTIONAL MATERIALS. THE ADVICE AND STRATEGIES CON- TAINED HEREIN MAY NOT BE SUITABLE FOR EVERY SITUATION. THIS WORK IS SOLD WITH THE UNDERSTANDING THAT THE PUBLISHER IS NOT ENGAGED IN RENDERING LEGAL, ACCOUNTING, OR OTHER PROFESSIONAL SERVICES. IF PROFESSIONAL ASSISTANCE IS REQUIRED, THE SERVICES OF A COMPETENT PROFESSIONAL PERSON SHOULD BE SOUGHT. NEITHER THE PUBLISHER NOR THE AUTHOR SHALL BE LIABLE FOR DAMAGES ARISING HEREFROM. THE FACT THAT AN ORGANIZATION OR WEBSITE IS REFERRED TO IN THIS WORK AS A CITATION AND/OR A POTENTIAL SOURCE OF FUR- THER INFORMATION DOES NOT MEAN THAT THE AUTHOR OR THE PUBLISHER ENDORSES THE INFOR- MATION THE ORGANIZATION OR WEBSITE MAY PROVIDE OR RECOMMENDATIONS IT MAY MAKE. FURTHER, READERS SHOULD BE AWARE THAT INTERNET WEBSITES LISTED IN THIS WORK MAY HAVE CHANGED OR DISAPPEARED BETWEEN WHEN THIS WORK WAS WRITTEN AND WHEN IT IS READ. For general information on our other products and services, please contact our Customer Care Department within the U.S. at 800-762-2974, outside the U.S. at 317-572-3993, or fax 317-572-4002. For technical support, please visit www.wiley.com/techsupport. 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 Control Number: 2005923232 ISBN-13: 978-0-7645-8917-1 ISBN-10: 0-7645-8917-2 Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 5B/RR/QV/QV/IN 01_589172 ffirs.qxd 4/22/05 3:21 PM Page v About the Authors Ed Tittelis a full-time independent writer, trainer, and consultant who works out of his home in beautiful Austin, Texas. Ed has been writing for the trade press since 1986 and has worked on more than 130 books. In addition to this title, Ed has worked on more than 35 books for Wiley, including Networking Windows NT Server For Dummies,XML For Dummies,and Networking with NetWare For Dummies. Ed is the technology editor at Certification magazine, writes the “Must Know News” twice-monthly newsletter for Cramsession.com, and also writes for a variety of Web sites and magazines. When he’s not busy doing all that work stuff, Ed likes to travel, shoot pool, spend time with his family (especially taking walks with young Gregory), and wrestle with his Labrador, Blackie. You can contact Ed Tittel by e-mail at [email protected]. Mary Burmeisteris an editor, project manager, and writer. She’s edited and project managed over 75 computer-related books. Mary has contributed material to several editions of HTML For Dummiesand XML For Dummiesin addition to project managing and editing them. Mary spends most of her time these days project managing, editing, and writing courses for Powered, Inc. 01_589172 ffirs.qxd 4/22/05 3:21 PM Page vi 01_589172 ffirs.qxd 4/22/05 3:21 PM Page vii Authors’ Acknowledgments Because this is the ninth go-round for HTML For Dummies,we must start by thanking our many readers for keeping this book alive. We’d also like to thank them and the Wiley editors for providing the feedback that drives the contin- uing improvement of this book. Please, don’t stop now — tell us what you want to do, and what you like and don’t like about this book. Let me go on by thanking my sterling co-author, Mary Burmeister, for her efforts on this revision. I’d also like to thank Rich Wagner, Brock Kyle, and Chelsea Valentine, and above all, Kim Lindros for their contributions, too. I am eternally grateful for your ideas, your hard work, and your experience in reaching an audience of budding Web experts. Thanks for breathing fresh life into this project! Next, I’d like to thank my colleagues and former coworkers at LANWrights (now part of Thomson) as well as the Wiley team for their efforts on this title. Here in Austin, my fervent thanks go to Mary Burmeister and Kim Lindros for the services provided and time spent on this book. At Wiley, I must thank Bob Woerner and Pat O’Brien for their outstanding efforts, and Marnie Knue-Merkel for their marvelous ways with our words. Other folks we need to thank include the folks in Composition Services for their artful page layouts, and the Media Development team for their assistance with the HTML 4 For DummiesWeb site on Dummies.com. I’d like to thank my lovely wife, Dina Kutueva-Tittel, for putting up with crazy schedules and cranky words for balky PCs during this project. I’d also like to extend a big Texas welcome to our wonderful son, Gregory, who made his debut at Seton Hospital on February 6, 2004. Thanks for all the funny faces and sleepless nights! Finally, I’d like to thank my parents, Al and Ceil, for all the great things they did for me. I remain grateful to my wonderdog, Blackie, who’s always ready to pull me away from the keyboard — sometimes literally — to explore the great outdoors. Ed Tittel I would like to thank Ed Tittel and Kim Lindros for roping me in on this pro- ject. You’re more than colleagues; you’re valuable friends. I’d also like to thank my mentor, co-worker, and best friend Dawn Rader for years of friend- ship and guidance. Another round of thanks goes out to my wonderful family and friends — you know who you are. And last, but certainly not least...thank you to my heart and soul: Steven, I can’t find the words to explain the joy and completeness you’ve brought to my life. I can’t wait to marry you! Mary Burmeister