Supplemental files and examples for this book can be found at http://examples.oreilly.com/9780735674387-files/. Please use a standard desktop web browser to access these files, as they may not be accessible from all ereader devices.
All code files or examples referenced in the book will be available online. For physical books that ship with an accompanying disc, whenever possible, weve posted all CD/DVD content. Note that while we provide as much of the media content as we are able via free download, we are sometimes limited by licensing restrictions. Please direct any questions or concerns to .
Introduction
This training guide is designed for information technology (IT) professionals who develop or plan to develop HTML documents such as webpages or Windows Store applications. It is assumed that, before you begin using this guide, you are familiar with web development and common Internet technologies.
This book covers some of the topics and skills that are the subject of the Microsoft certification exam 70-480. If you are using this book to complement your study materials, you might find this information useful. Note that this book is designed to help you in the job role; it might not cover all exam topics. If you are preparing for the exam, you should use additional study materials to help bolster your real-world experience. For your reference, a mapping of the topics in this book to the exam objectives is included in the back of the book.
By using this training guide, you will learn how to do the following.
Create a project using Visual Studio Express 2012 for Web.
Create a project using Blend for Visual Studio 2012.
Create a project using Visual Studio Express 2012 for Windows 8.
Create an HTML document using semantic markup.
Implement JavaScript functionality with your HTML documents.
Use test-driven development techniques for writing JavaScript code.
Create Cascading Style Sheets (CSS) that visually format your HTML document.
Create HTML tables.
Create JavaScript objects.
Use jQuery to simplify JavaScript programming.
Create HTML forms with validation.
Create a Node.js website and web service.
Call web services from JavaScript.
Perform asynchronous JavaScript operations.
Perform WebSocket communications.
Play audio and video on a webpage.
Draw with an HTML5 canvas.
Use SVG image files.
Perform drag and drop operations.
Make your HTML location aware.
Persist data on the browser client.
Backward compatibility and cross-browser compatibility
This book does not attempt to cover every difference between every version of every browser. Such a comprehensive discussion could easily yield a library of books.
Most of the code in this book is written using Internet Explorer 10, which is installed with Windows 8. In addition, many but not all the code examples were tested using the following browsers.
In most cases, if the other browsers were not compatible, there is a note stating so. This is especially true in the last chapters because web storage is still relatively new, and the requirements are still fluid.
The best way to see which features are available among browsers is to visit a website that is updated when new browser versions are released and HTML5 features are updated. The website http://caniuse.com is particularly good.
System requirements
The following are the minimum system requirements your computer needs to meet to complete the practice exercises in this book.
Hardware requirements
This section presents the hardware requirements for using Visual Studio 2012.
1.6 GHz or faster processor
1 GB of RAM (more is always recommended)
10 GB (NTFS) of available hard disk space
5400 RPM hard drive
DirectX 9capable video card running at 1024 768 or higher display resolution.
Internet connectivity
Software requirements
The following software is required to complete the practice exercises.
Visual Studio 2012 Professional, Visual Studio 2012 Premium, or Visual Studio 2012 Ultimate. You must pay for these versions, but in lieu of one of these versions, you can install the following free express versions.
Visual Studio Express 2012 for Web. Available from http://www.microsoft.com/visualstudio/eng/downloads#d-express-web .
Visual Studio Express 2012 for Windows 8. This installation also installs Blend for Visual Studio 2012. Available from http://www.microsoft.com/visualstudio/eng/downloads#d-express-web .
Practice exercises
This book features practices exercises to reinforce the topics youve learned. These exercises are organized by chapter, and you can download them from http://aka.ms/TGProgHTML5/files .
Acknowledgments
Thanks go to the following people for making this book a reality.
To Carol Dillingham for your constructive feedback throughout the entire process of writing this book. Thanks for also having patience while the winter holiday months were passing, and my desire and ability to write was constantly interrupted.
To Devon Musgrave for providing me the opportunity to write this book.
To Kerin Forsyth for your hard work in making this book consistent with other Microsoft Press books and helping me with the delivery of this book.
To Pierce Bizzaca for your technical reviewing skills.
To all the other editors and artists who played a role in getting my book to the public, thank you for your hard work and thanks for making this book venture a positive experience for me.
Errata and book support
Weve made every effort to ensure the accuracy of this book and its companion content. Any errors that have been reported since this book was published are listed on our Microsoft Press site at Oreilly.com:
If you find an error that is not already listed, you can report it to us through the same page.
If you need additional support, send an email to Microsoft Press Book Support at