Building Websites All-in-One For Dummies, 3rd Edition
by Doug Sahlin and David Karlins
Building Websites All-in-One For Dummies, 3rd Edition
Published by
John Wiley & Sons, Inc.
111 River Street
Hoboken, NJ 07030-5774
www.wiley.com
Copyright 2012 by John Wiley & Sons, Inc., Hoboken, New Jersey
Published by John Wiley & Sons, Inc., Hoboken, New Jersey
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 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. John Wiley & Sons, 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.
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 publishes in a variety of print and electronic formats and by print-on-demand. Some material included with standard print versions of this book may not be included in e-books or in print-on-demand. If this book refers to media such as a CD or DVD that is not included in the version you purchased, you may download this material at http://booksupport.wiley.com . For more information about Wiley products, visit www.wiley.com .
Library of Congress Control Number: 2012942059
ISBN 978-1-118-27003-5 (pbk); ISBN 978-1-118-28348-6 (ebk); ISBN 978-1-118-28482-7 (ebk); ISBN 978-1-118-28725-5 (ebk)
Manufactured in the United States of America
10 9 8 7 6 5 4 3 2 1
About the Authors
Doug Sahlin is an author and photographer living in Venice, Florida. He is a professional photographer specializing in fine art photography. He also photographs weddings and events and writes books about computer applications like Adobe Acrobat and Adobe Photoshop. Dougs latest books have been about digital photography. In the past years, hes written Digital Photography Workbook For Dummies, Digital Portrait Photography For Dummies, and Canon EOS 7D For Dummies . To find out more about Doug and see some of his work, check out www.dasdesigns.net
.
David Karlins is a web design consultant, author, and teacher, addressing contemporary challenges in digital graphic and interactive design. Visit him at davidkarlins.net
.
Dedication
From Doug: For my soul mate Roxanne and Niki, The Queen of the Universe
Authors Acknowledgments
From Doug Sahlin: Two authors wrote this book, but a cast of thousands okay, maybe hundreds are responsible for the finished product you hold in your hands. Many thanks to Executive Editor Steve Hayes for making the 3rd Edition of this book possible. Kudos to Senior Project Editor Nicole Sholly for making sure the authors did what they were supposed to do when they were supposed to do it. Thanks to Senior Copy Editor Teresa Artman for peppering the text with insightful comments designed to amuse and otherwise keep the authors on their toes. Thanks to the staff at Wiley for creating an awesome series of books. Thanks to Technical Editor John Chastain for making sure everything was technically accurate. Thanks to Margot Hutchison for ironing out the contractual issues and other such delights.
Thanks to my friends, fellow authors, and family for their continued encouragement and support. Special thanks to Ted, Colin, Karen, Niki the Cat, and her brother Micah.
From Dave Karlins: Bringing this book to life was a collaborative project, with the coauthors; Executive Editor Steven Hayes; Senior Project Editor Nicole Sholly; and literary agent Margot Mailey Hutchinson at the core. In addition, my pieces of the puzzle were enhanced by the contributions of a wide range of helpful designers, experts, and reviewers.
A number of creative content developers allowed me to use their inspiring material as models in the book, including: composer Inhyun Kim and Ear to Mind ( http://eartomind.com/
); graphic designer Emily Strand ( http://cargocollective.com/emstranded
); and photographer Gary Wahl ( www.garywahlphotography.com
). I did my best to minimize distorting their content while using it to illustrate techniques in the book, and appreciate their generosity in lending content for that purpose.
Presenting JavaScript and PHP in this comprehensive book posed particular challenges. I was determined to make that material accurate, accessible, and useful while fitting within the constraints and parameters of this book. To that end, I got great assistance from some of the most dynamic innovators in the worlds of JavaScript and PHP. Those who unselfishly shared expertise and advice include Bryn Austin Bellomy ( http://signals.io
); Jake Brumby ( www.MagicToolbox.com
); Mary D. ( www.WOWslider.com
); Alan Douglas ( www.freefind.com
); Jonathan Grover ( jonathangrover.com
); Christopher Heng ( www.thesitewizard.com
); Torstein Hnsi ( highsoft.com
); and Orfeo Morello (