Missing Manual - HTML5.pdf

(20908 KB) Pobierz
www.it-ebooks.info
www.it-ebooks.info
HTML5
The book that should have been in the box
®
Matthew MacDonald
Beijing | Cambridge | Farnham | Köln | Sebastopol | Tokyo
www.it-ebooks.info
HTML5: The Missing Manual
by Matthew MacDonald
Copyright © 2011 Matthew MacDonald. All rights reserved.
Printed in the Unites States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly Media books may be purchased for educational, business, or sales promotional use. Online
editions are also available for most titles:
http://my.safaribooksonline.com.
For more information,
contact our corporate/institutional sales department: 800-998-9938 or
corporate@oreilly.com.
Printing History:
August 2011: First Edition.
Nutshell Handbook, the Nutshell Handbook logo, the O’Reilly logo, and “The book that should
have been in the box” are registered trademarks of O’Reilly Media, Inc.
HTML5: The Missing
Manual,
The Missing Manual logo, Pogue Press, and the Pogue Press logo are trademarks of
O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are
claimed as trademarks. Where those designations appear in this book, and O’Reilly Media, Inc.
was aware of a trademark claim, the designations have been printed in caps or initial caps.
While every precaution has been taken in the preparation of this book, the publisher and
authors assume no responsibility for errors or omissions, or for damages resulting from the use
of the information contained herein.
ISBN: 978-1-449-30239-9
[M]
www.it-ebooks.info
Table of Contents
The Missing Credits
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
xi
Introduction
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1
Part One: Meet the New Language
Chapter 1: Introducing HTML5
. . . . . . . . . . . . . . . . . . . . . . .
11
The Story of HTML5
. . . . . . . . . .
XHTML 1.0: Getting Strict
. . . . . .
XHTML 2: The Unexpected Failure
.
HTML5: Back From the Dead
. . . .
HTML: The Living Language
. . . .
Three Key Principles of HTML5
. . . . .
1. Don’t Break the Web
. . . . . . .
2. Pave the Cowpaths
. . . . . . . .
3. Be Practical
. . . . . . . . . . . .
Your First Look at HTML5 Markup
. . .
The HTML5 Doctype
. . . . . . . .
Character Encoding
. . . . . . . . .
The Language
. . . . . . . . . . . .
Adding a Style Sheet
. . . . . . . .
Adding JavaScript
. . . . . . . . . .
The Final Product
. . . . . . . . . .
A Closer Look at HTML5 Syntax
. . . .
The Loosened Rules
. . . . . . . .
HTML5 Validation
. . . . . . . . . .
The Return of XHTML
. . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11
12
12
13
14
15
15
17
17
18
20
21
21
22
22
23
24
24
25
27
iii
www.it-ebooks.info
Zgłoś jeśli naruszono regulamin