Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. 557386 FM.qxd 4/2/04 10:00 AM Page iii Creating Cool Web Sites with HTML, XHTML, and CSS Dave Taylor Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. 557386 FM.qxd 4/2/04 10:00 AM Page ii Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. 557386 FM.qxd 4/2/04 10:00 AM Page i Creating Cool Web Sites with HTML, XHTML, and CSS Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. 557386 FM.qxd 4/2/04 10:00 AM Page ii Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. 557386 FM.qxd 4/2/04 10:00 AM Page iii Creating Cool Web Sites with HTML, XHTML, and CSS Dave Taylor Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. 557386 FM.qxd 4/2/04 10:00 AM Page iv Creating Cool Web Sites with HTML, XHTML, and CSS 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 Library of Congress Control Number: 2004100892 ISBN: 0-7645-5738-6 Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 1B/SQ/QU/QU/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 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-4447, E-Mail: permcoordinator@wiley.com . LIMIT OF LIABILITY/DISCLAIMER OF W ARRANTY: THE PUBLISHER AND THE AUTHOR MAKE NO REPRESEN TATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS OF THIS WORK AND SPECIFICALLY DISCLAIM ALL WARRANTIES, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE. NO WARRANTY MAY BE CREATED OR EXTENDED BY SALES OR PROMOTIONAL MATERIALS. THE ADVICE AND STRATEGIES CONTAINED 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 FURTHER INFORMATION DOES NOT MEAN THAT THE AUTHOR OR THE PUBLISHER ENDORSES THE INFORMATION 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 or to obtain technical support, 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. Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic books. 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. 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. Copyright © 1994-2003 World Wide Web Consortium (Massachusetts Institute of Technology, European Research Consortium for Informatics and Mathematics, Keio University). All Rights Reserved. http://www.w3.org/ Consortium/Legal/2002/copyright documents 20021231. Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. 557386 FM.qxd 4/2/04 10:00 AM Page v About the Author Dave Taylor has been involved with the Internet since 1980, when he first logged in as an undergraduate at the University of California, San Diego. Since then, he’s been a research scientist at Hewlett-Packard Laboratories in Palo Alto, California, reviews editor for SunWorld magazine, and founder of four companies: The Internet Mall, iTrack.com, AnswerSquad, and ClickThruStats.com. Currently, Dave is president of Intuitive Systems and is busy launching an electronic book publishing company called Intuitive Press. Dave has designed over 50 Web sites, both commercial and nonprofit, and has published more than 1000 articles about the Internet, Unix, Macintosh, interface design, and business topics. His books include Learning Unix for Mac OS X Panther (O’Reilly), Wicked Cool Shell Scripts (No Starch Press), Teach Yourself Unix in 24 Hours (Sams Publishing), and Solaris For Dummies (Wiley Publishing). Dave holds a master’s degree in Educational Computing from Purdue University, an M.B.A. from the University of Baltimore, an undergraduate degree in Computer Science from the University of California at San Diego, and is an adjunct professor at the University of Colorado, Boulder, and the University of Phoenix Online. You can find Dave Taylor online just about any time at http://www.intuitive.com/ , or you can send him electronic mail at taylor@intuitive.com . Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. 557386 FM.qxd 4/2/04 10:00 AM Page vi Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. 557386 FM.qxd 4/2/04 10:00 AM Page vii Credits Senior Acquisitions Editor Jim Minatel Development Editors Jodi Jensen Brian Herrmann Production Editor Felicia Robinson Technical Editing Wiley-Dreamtech India Pvt Ltd Copy Editor Mary Lagu Editorial Manager Mary Beth Wakefield Vice President and Executive Group Publisher Richard Swadley Vice President and Executive Publisher Bob Ipsen Vice President and Publisher Joseph B. Wikert Executive Editorial Director Mary Bednarek Project Coordinator April Farling Graphics and Production Specialists Beth Brooks Jonelle Burns Jennifer Heleine Quality Control Technician Susan Moritz Permissions Editor Laura Moss Media Development Specialist Angela Denny Book Designer Kathie S. Schnorr Proofreading and Indexing Publication Services Cover Design Michael Trent Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. [...]... Creating Cool Web Sites with HTML, XHTML, and CSS will meet your needs as well as provide fun and interesting reading So spend a minute and breeze through my preface to ensure that this is the book you seek What This Book Is About In a nutshell, Creating Cool Web Sites with HTML, XHTML, and CSS is an introduction to HTML, XHTML, and Cascading Style Sheets HTML is the HyperText Markup Language, and. .. on it, and how to use your Web browser If you seek detailed information on these topics, you can find many interesting and useful books from Wiley Publishing at http://www.wiley.com/ compbooks After you have this basic knowledge, you’ll find that Creating Cool Web Sites with HTML, XHTML, and CSS is a fun introduction to the art and science of creating interesting— and, if I may say so, cool Web sites. .. references I could find were confusing online documents written by programmers and computer types For you, it will be a lot easier By reading this book and exploring the software and samples included on the companion Web site, you can learn not only the nuts and bolts of HTML, XHTML, and CSS, but also quite a lot about how to design and create useful, attractive Web sites and spread the word about them on the... Companion Web Site? What would a Web book be without a companion Web site? The Creating Cool Web Sites with HTML, XHTML, and CSS Web site can be found at http://www.intuitive.com/ coolsites/ The site contains every single example in the book, pointers to every site men tioned, the extended table of contents for the book, and a sample chapter for your reading pleasure In addition, you’ll find an errata... at hand This icon points you to helpful information or samples on the companion Web site that accompanies this book (http://www.intuitive.com/coolsites/) or to sites elsewhere on the Net Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark Ł xiv Preface Who Should Read This Book? You can use this book to learn HTML, XHTML, CSS, and the techniques needed to create cool Web sites. .. Ł 6 Creating Cool Web Sites with HTML, XHTML, and CSS Figure 1-2: The National Institute for Literacy site The simplest of these alternative information services on the Internet is FTP (File Transfer Protocol) FTP is a mechanism for accessing lists of remote folders on hard disks and then directly accessing specific files within those folders It’s been around for a long time—long before the Web was... directory or folder? Click it, and you move to that spot Ready to grab a file? Just click the file, and Explorer automatically figures out the file type, asks what you want to call the file on your PC, and transfers it across No fuss, no hassle Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark Ł 8 Creating Cool Web Sites with HTML, XHTML, and CSS Ł tip Throughout this book,... comes with Windows) or TextEdit (which is part of the Macintosh operating system), and a Web browser If you’re already online and have a Web browser installed on your computer, you can easily explore all the examples in this book by going to this book’s accompanying Web site at http://www.intuitive.com/coolsites/ What’s on the Companion Web Site? What would a Web book be without a companion Web site?... physical and organizational characteristics of this book for a second What is most notable? The book has discrete units of information—pages The pages are conceptually organized into chapters The chapters are bound together Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark Ł 4 Creating Cool Web Sites with HTML, XHTML, and CSS to comprise the book itself What you have in your hands... shown in Figure 1-5 Figure 1-5: In the Open box, you can type the URL for the Creating Cool Web Sites home page (http://www.intuitive.com/coolsites/) and click OK Now you’re getting somewhere! Type the URL for this book, http://www.intuitive.com/ coolsites/, and click OK, and Internet Explorer should promptly open up the file and the associated graphics, displaying it all in one neat window You might . that Creating Cool Web Sites with HTML, XHTML, and CSS is a fun introduction to the art and science of creating interesting— and, if I may say so, cool Web. This Book Is About In a nutshell, Creating Cool Web Sites with HTML, XHTML, and CSS is an introduction to HTML, XHTML, and Cascading Style Sheets. HTML