HTML5 24-Hour Trainer
Published by
Wiley Publishing, Inc.
10475 Crosspoint Boulevard
Indianapolis, IN 46256
www.wiley.com
Copyright 2011 by Wiley Publishing, Inc., Indianapolis, Indiana
Published simultaneously in Canada
ISBN: 978-0-470-64782-0
Manufactured in the United States of America
10 9 8 7 6 5 4 3 2 1
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 .
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 Web site 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 Web site may provide or recommendations it may make. Further, readers should be aware that Internet Web sites 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 United States at (877) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002.
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: 2010937824
Trademarks: Wiley, the Wiley logo, Wrox, the Wrox logo, Programmer to Programmer, 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.
For Nelee, whose life will resonate for generations to come
Joseph Lowery
To my wife, Vanessa. You are and always will be my soul mate.
Mark Fletcher
About the Authors
Joseph Lowerys books about the Web and web-building tools are international bestsellers, having sold more than 400,000 copies worldwide in 11 different languages. His most recent books are the Adobe Dreamweaver CS5 Bible and Adobe CS4 Web Workflows. Joe developed the Dreamweaver CS5 and WordPress 3.0 course for Lynda.com. He is the author of the popular CSS Hacks and Filters as well as numerous other books on creating websites. A well-known speaker, Joe has presented at Adobe conferences in the United States and Europe as well as user groups around the country. Joe bases his books on over 12 years of real-world experience building sites, applications, and tools for web designers and developers. He currently works with a number of designers and also designs sites himself.
Mark Fletcher is an eLearning Developer specializing in Rapid e-Learning Development. Mark has worked with many blue chip companies such as Adobe Systems Inc., eSyncTraining.com, and a leading eLearning company. Mark also has presented at a number of conferences on e-Learning. Mark lives on the northwest coast of the United Kingdom with his wife, Vanessa, and their two children, Joel and Lucy. Mark can be reached on his personal blog. http://macrofireball.blogspot.com .
About the Technical Editor
Carlos Gonzalez was born in Brighton on the south coast of England in 1979. He started doing graphic and web design 11 years ago. Carlos worked for Victoria Real on the first two Big Brother UK websites. He has been a freelance web designer for over 6 years, creating bespoke websites with a keen focus on aesthetics and the latest W3C standards.
Credits
Executive Editor
Bob Elliott
Senior Project Editor
Kevin Kent
Technical Editor
Carlos Gonzalez
Senior Production Editor
Debra Banninger
Copy Editor
Kim Cofer
Editorial Director
Robyn B. Siesky
Editorial Manager
Mary Beth Wakefield
Freelancer Editorial Manager
Rosemarie Graham
Associate Director of Marketing
David Mayhew
Production Manager
Tim Tate
Vice President and Executive Group Publisher
Richard Swadley
Vice President and Executive Publisher
Barry Pruett
Associate Publisher
Jim Minatel
Project Coordinator, Cover
Katie Crocker
Compositor
Jeff Wilson, Happenstance Type-O-Rama
Proofreader
Nancy Carrasco
Indexer
Robert Swanson
Cover Designer
Michael E. Trent
Cover Image
Konstantin Inozemtsev/istockphoto.com
Acknowledgments
Thanks to all the great folks at Wiley/Wrox for helping with this book. We really appreciate the work put in by Scott Meyers, Kevin Kent, Rosemarie Graham, and others for keeping us on track and moving forward.
Introduction
No doubt about it, HTML5 is hot. Although the fires were initially stoked by Apples expressed preference for the nascent web language over embedded plug-ins, the power of HTML5 is transcending that discussion. HTML5 brings much-needed capabilities to web designers capabilities that could significantly reshape the look-and-feel of the Web.
As a long-time web designer, Im very excited about the possibilities of HTML5. And, as a teacher of web technologies, I feel its important that new designers get off on the right foot so they can build web standardcompliant sites that work across multiple browsers today and well into the future.
Who This Book Is For
The HTML5 24-Hour Trainer is designed primarily to introduce the language to beginning web designers and, secondarily, as an aid to current designers who want to try out the new features of HTML5. Whether youre a total newbie or a working professional who just needs a quick brush-up, this book will work for you.
If you are just starting out as a web designer, I suggest you read the book straight through, cover to cover. Ive made sure to introduce concepts and techniques before they are put to use. Be sure to work your way through the Try It exercises as well, whether by following along with the written steps in the book or by watching the videos presented on the DVD with the print book, or watch online at www.wrox.com/go/html5video . The first series of exercises are intentionally very basic, and they ramp up as the book progresses.