HTML, XHTML & CSS For Dummies, 7th Edition
by Ed Tittel and Jeff Noble
Foreword by Eric A. Meyer
HTML, XHTML & CSS For Dummies, 7th Edition
Published by
Wiley Publishing, Inc.
111 River St.
Hoboken, NJ 07030-5774
www.wiley.com
Copyright 2011 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 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 Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, 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, Making Everything Easier, 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.
Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations 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. FULFILLMENT OF EACH COUPON OFFER IS THE SOLE RESPONSIBILITY OF THE OFFEROR.
For general information on our other products and services, please contact our Customer Care Department within the U.S. at 877-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: 2010941511
ISBN: 978-0-470-91659-9
Manufactured in the United States of America
10 9 8 7 6 5 4 3 2 1
About the Authors
Ed Tittel is a freelance writer, consultant, and occasional expert legal witness on Web technologies who works at home near beautiful Austin, Texas. Ed has written for the trade press since 1986 and has worked on more than 140 books. Ed has worked on many other titles for Wiley, too, including Windows Server 2008 For Dummies, XML For Dummies, and Networking with NetWare For Dummies. Lately, hes worked on various For Dummies custom titles, including booklets on clustered computing, mobile backhaul, XBRL Markup, and carrier Ethernet.
Ed blogs, provides expert Q&A, and writes for several TechTarget.com Web sites, such as SearchNetworking.com and SearchWindows.com. He also writes for ITExpertVoice, Toms Hardware, Toms Guide, and more. When hes not busy working, Ed likes to travel, shoot pool, and spend time with his family. He also loves to spend time in the kitchen cooking like mad, or sous-cheffin for his cuisine-crazy wife, Dina. Contact Ed by e-mail at etittel@yahoo.com .
Jeff Noble somehow manages to juggle being a principal user designer at a global software company, CA Technologies, associate editor of UItrends.com (a blog about the good, the bad, and the ugly of user interface design), and owner of Conquest Media (www.conquestmedia.com ), a small Web and application design company in Austin, Texas. Jeff has more than twelve years of design experience and specializes in all aspects of Web sites and enterprise software applications (designing, building, optimizing, explaining, and so on). In addition to this title, hes handled technical editing on six other For Dummies Web design and programming titles for Wiley. In what little spare time he has away from the computer, Jeff enjoys childish activities like eating unhealthy amounts of candy and breaking things, as well as relaxing hobbies like hiking, traveling, and gardening. Jeff is available for Web site and enterprise application consulting. You can contact him by e-mail at jeff@conquestmedia.com .
Authors Acknowledgments
Wow! Its hard to believe weve hit the lucky 13th edition for HTML For Dummies. Of all the books Ive worked on, this ones covered more time and versions than the rest. So thanks again readers, for keeping this book going strong. Wed also like to thank our readers and the Wiley editors for providing welcome feedback to drive continuing improvement of this book. Dont stop now keep telling us what you want. Especially, tell us what you liked and didnt like about this second full-color edition.
Let me also thank some people from previous editions, including J. Michael Stewart, Natanya Anderson, Dori Smith, Tom Negrino, Mary Burmeister, Brock Kyle, Chelsea Valentine, Dawn Davidson, and Kim Lindros. And, for the second time, Im indebted to my co- author and friend, Jeff Noble, for infusing insight and enthusiasm. I am grateful for your ideas, your hard work, and your experience in reaching budding Web experts. Thanks, too, to Mary Kyle Inks, who expertly project-managed this effort.
At Wiley, I must thank Bob Woerner and Jean Nelson for their outstanding efforts, and Brian Walls, Teresa Artman, and Christopher McGee for their efforts on design, layout, content, and coverage. A special shout-out to the friendly folks in Composition Services for artful page layouts, and for keeping all the color-coded elements straight.
Thanks to my lovely wife, Dina Kutueva-Tittel, and inquisitive son, Gregory, for putting up with my sometimes whacky and intense schedule. Im not always as easy to live with as I could be, but hopefully, Ill improve with time and effort. Also, thanks to my Dad, Al Tittel, for all hes done for my family and me, and for dropping in more frequently. I hope youre around to see our 14th edition come to print! Finally, profound thanks and remembrances to Cecilia Katherine Kociolek Tittel (4/3/19199/11/2009). Thanks, Mom, for encouraging my love of words and writing: I still miss you every day.