HTML5
HTML5
d e s i g n i n g r i c h
i nt e r n e t
applications
Matthew DaviD
AMSTERDAM • BOSTON • HEIDELBERG • LONDON • NEW YORK • OXFORD
PARIS • SAN DIEGO • SAN FRANCISCO • SINGAPORE • SYDNEY • TOKYO
Focal Press is an imprint of Elsevier
Focal Press is an imprint of Elsevier
30 Corporate Drive, Suite 400, Burlington, MA 01803, USA
The Boulevard, Langford Lane, Kidlington, Oxford, OX5 1GB, UK
© 2010 Elsevier, Inc. All rights reserved.
No part of this publication may be reproduced or transmitted in any form or by any means, electronic or mechanical,
including photocopying, recording, or any information storage and retrieval system, without permission in writing
from the Publisher. Details on how to seek permission, further information about the Publisher's permissions
policies and our arrangements with organizations such as the Copyright Clearance Center and the Copyright
Licensing Agency, can be found at our website: www.elsevier.com/permissions.
This book and the individual contributions contained in it are protected under copyright by the Publisher (other than
as may be noted herein).
Notices
Knowledge and best practice in this field are constantly changing. As new research and experience broaden our
understanding, changes in research methods, professional practices, or medical treatment may become necessary.
Practitioners and researchers must always rely on their own experience and knowledge in evaluating and using any
information, methods, compounds, or experiments described herein. In using such information or methods they should
be mindful of their own safety and the safety of others, including parties for whom they have a professional responsibility.
To the fullest extent of the law, neither the Publisher nor the authors, contributors, or editors, assume any liability for
any injury and/or damage to persons or property as a matter of products liability, negligence or otherwise, or from
any use or operation of any methods, products, instructions, or ideas contained in the material herein.
Library of Congress Cataloging-in-Publication Data
David, Matthew, 1971-
HTML5 : designing rich Internet applications / Matthew David.
p. cm.
Includes index.
ISBN 978-0-240-81328-8
1. HTML (Document markup language) 2. Multimedia communications. 3. Web site development. I. Title. II. Title:
Visualizing the Web.
QA76.76.H94D4184 2010
006.7'4–dc22 2010018716
British Library Cataloguing-in-Publication Data
A catalogue record for this book is available from the British Library.
ISBN: 978-0-240-81328-8
10 11 12 13 14 5 4 3 2 1
Printed in the United States of America
For information on all Focal Press publications
visit our website at www.elsevierdirect.com
Praise for the Book
HTML5 isn't one thing, but many different improvements rolled under
one name. Knowing where to start can be tricky. Fortunately, this book
presents the major concepts in a logical sequence. Topics flow easily
from explanations to bite-sized projects, flavored with the author's
practical advice. It's a handy introduction to HTML5, and I'm looking
forward to the paper copy!
—Sam Wan, UI engineer
With the arrival of HTML5 and CSS3, those working with the web
face a host of new challenges. HTML5: Designing Rich Internet
Applications puts solutions at your fingertips; the content is concise
and easily referenced, and the accompanying projects help convert
learning to real-world action.
—Toby Pestridge, Toby James Creative
Matthew David proves that developing in HTML5 right now can
be exceptionally rewarding with this the first major update to the
language in over ten years. Matthew has provided us a great frame of
reference of what's to come and what we can start using now!
—Conrad Fuhrman, partner/lead developer, ThreeSphere LLC
HTML5 is quickly gaining technological influence as more devices
and browsers support it every day. Matthew David introduces you to
key concept, and dives in for a comprehensive look to prepare you for
tomorrow's internet.
—Joel Martinez, Codecub.net
Matthew David has continued his mastery of presenting new and
seemingly complex topics in a practical, easy-to-understand manner.
This book will not only bring programmers and designers into the next
generation of web development, but also redefine their concept of what
can be done in a browser—presenting limitless opportunities for years
to come.
—Ryan Moore, author of Foundation ASP.NET for Flash