HTML5: Up and Running and over one million other books are available for Amazon Kindle. Learn more

Buy New

or
Sign in to turn on 1-Click ordering.
or
Amazon Prime Free Trial required. Sign up when you check out. Learn More
Buy Used
Used - Good See details
$12.90 & eligible for FREE Super Saver Shipping on orders over $25. Details

or
Sign in to turn on 1-Click ordering.
 
   
Kindle Edition
 
   
Sell Back Your Copy
For a $4.25 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
HTML5: Up and Running
 
 
Start reading HTML5: Up and Running on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

HTML5: Up and Running [Paperback]

Mark Pilgrim (Author)
4.0 out of 5 stars  See all reviews (60 customer reviews)

List Price: $29.99
Price: $18.05 & eligible for FREE Super Saver Shipping on orders over $25. Details
You Save: $11.94 (40%)
  Special Offers Available
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
Want it delivered Tuesday, May 22? Choose One-Day Shipping at checkout. Details
Textbook Student FREE Two-Day Shipping for students on millions of items. Learn more

Formats

Amazon Price New from Used from
Kindle Edition $13.19  
Paperback $18.05  
Unknown Binding --  
Sell Back Your Copy for $4.25
Whether you bought it on Amazon or somewhere else, you can sell it back through our Book Trade-In Program at the current price of $4.25.
Used Price$9.39
Trade-in Price$4.25
Price after
Trade-in
$5.14

Book Description

August 24, 2010 0596806027 978-0596806026 1

If you don't know about the new features available in HTML5, now's the time to find out. The latest version of this markup language is going to significantly change the way you develop web applications, and this book provides your first real look at HTML5's new elements and attributes.

Even though work on HTML5 is ongoing, browsers such as Safari, Mozilla, Opera, and Chrome already support many of its features -- and browsers for smart phones are even farther ahead, especially iPhone's MobileSafari browser. With HTML5: Up & Running, you'll learn how this new version enables browsers to interact with JavaScript much more easily than before. You'll also learn how HTML5 can help you develop applications that:

  • Display video directly in the browser, without having to rely on plugins
  • Work even when a user is offline, by taking advantage of HTML5's persistent storage
  • Offer a drawing canvas for dynamically generated 2-D graphics

This concise guide is the most complete and authoritative book you'll find on the subject. Author Mark Pilgrim writes the weekly digest for the HTML5 Working Group, and represents Google at conferences on HTML5's capabilities. Stay ahead of the curve. Order a copy of this book today.

Five Things You Should Know About HTML5
by Mark Pilgrim

1. It’s not one big thing. You may well ask: “How can I start using HTML5 if older browsers don’t support it?” But the question itself is misleading. HTML5 is not one big thing; it is a collection of individual features. So you can’t detect “HTML5 support,” because that doesn’t make any sense. But you can detect support for individual features, like canvas, video, or geolocation.

You may think of HTML as tags and angle brackets. That’s an important part of it, but it’s not the whole story. The HTML5 specification also defines how those angle brackets interact with JavaScript, through the Document Object Model (DOM). HTML5 doesn’t just define video tag; there is also a corresponding DOM API for video objects in the DOM. You can use this API to detect support for different video formats, play a video, pause, mute audio, track how much of the video has been downloaded, and everything else you need to build a rich user experience around the video tag itself.

Chapter 2 and Appendix A will teach you how to properly detect support for each new HTML5 feature.

2. You don’t need to throw anything away. Love it or hate it, you can’t deny that HTML 4 is the most successful markup format ever. HTML5 builds on that success. You don’t need to throw away your existing markup. You don’t need to relearn things you already know. If your web application worked yesterday in HTML 4, it will still work today in HTML5. Period.

Now, if you want to improve your web applications, you’ve come to the right place. Here’s a concrete example: HTML5 supports all the form controls from HTML 4, but it also includes new input controls. Some of these are long-overdue additions like sliders and date pickers; others are more subtle. For example, the email input type looks just like a text box, but mobile browsers will customize their onscreen keyboard to make it easier to type email addresses. Older browsers that don’t support the email input type will treat it as a regular text field, and the form still works with no markup changes or scripting hacks. This means you can start improving your web forms today, even if some of your visitors are stuck on IE 6.

Read all the gory details about HTML5 forms in Chapter 9.

3. It’s easy to get started. “Upgrading” to HTML5 can be as simple as changing your doctype. The doctype should already be on the first line of every HTML page. Previous versions of HTML defined a lot of doctypes, and choosing the right one could be tricky. In HTML5, there is only one doctype: !DOCTYPE html

Upgrading to the HTML5 doctype won’t break your existing markup, because all the tags defined in HTML 4 are still supported in HTML5. But it will allow you to use -- and validate -- new semantic elements like article, section, header, and footer. You’ll learn all about these new elements in Chapter 3.

4. It already works Whether you want to draw on a canvas, play video, design better forms, or build web applications that work offline, you’ll find that HTML5 is already well-supported. Firefox, Safari, Chrome, Opera, and mobile browsers already support canvas (Chapter 4), video (Chapter 5), geolocation (Chapter 6), local storage (Chapter 7), and more. Google already supports microdata annotations (Chapter 10). Even Microsoft -- rarely known for blazing the trail of standards support -- will be supporting most HTML5 features in the upcoming Internet Explorer 9.

Each chapter of this book includes the all-too-familiar browser compatibility charts. But more importantly, each chapter includes a frank discussion of your options if you need to support older browsers. HTML5 features like geolocation (Chapter 6) and video (Chapter 5) were first provided by browser plugins like Gears or Flash. Other features, like canvas (Chapter 4), can be emulated entirely in JavaScript. This book will teach you how to target the native features of modern browsers, without leaving older browsers behind.

5. It’s here to stay. Tim Berners-Lee invented the world wide web in the early 1990s. He later founded the W3C to act as a steward of web standards, which the organization has done for more than 15 years. Here is what the W3C had to say about the future of web standards, in July 2009:
    Today the Director announces that when the XHTML 2 Working Group charter expires as scheduled at the end of 2009, the charter will not be renewed. By doing so, and by increasing resources in the HTML Working Group, W3C hopes to accelerate the progress of HTML5 and clarify W3C’s position regarding the future of HTML.
HTML5 is here to stay. Let’s dive in.

Special Offers and Product Promotions

  • Buy $50 in qualifying physical textbooks, get $2 in Amazon MP3 Credit. Here's how (restrictions apply)

Frequently Bought Together

HTML5: Up and Running + JavaScript: The Definitive Guide: Activate Your Web Pages (Definitive Guides) + JavaScript: The Good Parts
Price For All Three: $66.58

Show availability and shipping details

Buy the selected items together
  • In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details

  • JavaScript: The Definitive Guide: Activate Your Web Pages (Definitive Guides) $30.54

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • JavaScript: The Good Parts $17.99

    In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details



Editorial Reviews

About the Author

Mark Pilgrim works as a developer advocate for Google, specializing in open source and open standards. You may remember him from such classics as Greasemonkey Hacks (O'Reilly), Dive Into Python (Apress), and Dive Into Python 3 (APress). He lives in North Carolina with his wife, two boys, and a big slobbery dog.


Product Details

  • Paperback: 222 pages
  • Publisher: O'Reilly Media; 1 edition (August 24, 2010)
  • Language: English
  • ISBN-10: 0596806027
  • ISBN-13: 978-0596806026
  • Product Dimensions: 9.2 x 7 x 0.5 inches
  • Shipping Weight: 12.6 ounces (View shipping rates and policies)
  • Average Customer Review: 4.0 out of 5 stars  See all reviews (60 customer reviews)
  • Amazon Best Sellers Rank: #34,245 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, read author blogs, and more.

Customer Reviews

Most Helpful Customer Reviews
198 of 203 people found the following review helpful
Format:Paperback
I must say: I enjoyed going through this book. It is written in an opinionated and slightly irreverent style, so I found it a mildly amusing read.

That being said: why do people buy a book on HTML5? Some would like to have a good in-depth reference on the ins and outs of the new language. Well now - that's not this book. Others might be new to web development and think learning HTML5 would be a good starting point. While they are right that HTML (5 or 4) is the place to start, this book surely isn't.

There's some depth when it comes to background, but much less when it comes to HTML5 itself or how to use it. True, the <canvas> tag and geolocation are covered pretty much in detail, but the author made some hard to defend choices in spending his paper estate.

HTML5 gives us no more than a handful of new tags, still some of those (<mark> and <section>, for example) are simply mentioned once and that's that. No examples, no advise on where to use them, nothing on browser support. Yet the book takes five pages at the start to tell the story of how the img-tag came into being some 15 years ago. Again, mildly amusing, but probably not the reason you are thinking of buying this book.

Another example: there are 10 pages with a primer on audio and video codecs, plus another 19 (!) detailed pages (with lots of screen shots) on how to use a number of specific and probably soon outdated software tools to encode video for the web. All fine for those who are completely new to video encoding and believe a book on HTML5 should be the starting point for that. But when it comes to the actual <video> tag (under the aptly named heading "At Last, the Markup"), this consists of a meager 3 pages that include a statement like this:

"The <video> element has methods like play() and pause()".

Huh? "Methods like"? So which other methods are there? And how and where would I use them? Are these standardized across browsers? Where can I find more about them? Any example, maybe?

If you think these are the kind of questions a book on HTML5 should answer, you are out of luck. The above sentence is all the information on this particular topic you are going to get. Not a word about implementing these methods, or on how to style the browsers' native video controllers that come with HTML5 support. There are a good number of external references for information on things like Unicode, codecs and video containers, and some useful scripts, but not a word on how we can get the information on how to control and style the <video> tag. Maybe the logical conclusion would be: in another book on HTML5, perhaps?
Was this review helpful to you?
90 of 97 people found the following review helpful
Format:Paperback
In the 1970s, ABC's "Schoolhouse Rock" took the tedious process of making a law and distilled it down into a 3-minute song that many of us can at least sing the first few bars from ("I'm just a bill, yes I'm only a bill, and I'm sitting here on Capitol Hill..."). Marc Pilgrim takes a different approach with the first chapter of this book, distilling the early history of HTML into fourteen eye-glazing pages. But if you can muddle through the initial proposal and discussion of the IMG tag, you get to Pilgrim's primary take-away of the chapter: HTML is not so much a thing, but a collection of things.

This is good, because the history of HTML has not been a smooth, step-by-step process. Different releases of different browsers have adopted different features of different specs at different times. I can personally recall rejoicing, back in the 90s, when both IE and Netscape finally implemented support for HTML tables. So it's no wonder that the second chapter dives into methods for detecting whether or not a user's browser supports certain HTML5 features.

If the first chapter was boring, the second is discouraging. First he shows how to check if Canvas is even supported. But once that's determined, you have to check if all the features of Canvas are supported. Moving on to the Video tag, even when that is supported, video format support varies across browsers. Basically, in these early days of HTML 5 support, it's like touring the United States early in the 20th century. Flush toilets and electric lights took longer to come to some areas than others.

After the third chapter started breaking down some of the new tags and how they affect the DOM, my eyes were good and glazed. This book is more discussion than documentation. If it was a car repair manual, instead of merely showing you the steps for changing the oil on your Honda, it would give you the history of the internal combustion engine, then detail different kinds of lubrication systems.

In short, there's a lot of valuable information in this book. Mark Pilgrim is no slouch on technical know-how or understanding of his topic. I just find the manner of presentation to be organized in such a way that I don't feel I have quick access to the information I want or that the available path to acquiring that knowledge is optimal. It's short on lab, long on lecture, and isn't something I'd make part of my permanent library.
Comment | 
Was this review helpful to you?
32 of 35 people found the following review helpful
Very Disappointed August 28, 2010
By Coder
Format:Paperback|Amazon Verified Purchase
This book feels like it was rushed to try to be the first HTML5 book published, the others I have ordered have all been pushed back several times as the specs/APIs evolve, this book was released as-is and it sure feels it. The 'Complete Examples' throughout the book are a mess and require considerable more work to be used as complete examples, they are at best snippets which illustrate very little. Several of the topics I was most interested in reading about were dealt with sparsely (some just in a single paragraph). In short, for an O'Reilley book I am quite disappointed.
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
Didn't get me up and running
A how-to manual that explores the new offerings of HTML5.

My Take
Interesting, but I didn't feel that it was getting me up and running! Read more
Published 1 month ago by K. D. Davie
A great place to start with HTML5
With new Firefox and Chrome releases coming out every few months, an HTML5 book published mid-2010 would seem outdated by now. Read more
Published 2 months ago by Ras Fred
Satisfy your intellectual curiosity.
First and foremost, it is important to realize the majority of bad reviews for this book are the result of a mis-understanding of its content. Read more
Published 3 months ago by Christopher G. Loverich
short introduction
this book is a short introduction to the main new elements of HTML5. It's easy to read but it will not become my reference book on HTML5. Read more
Published 5 months ago by Eric Franchomme
"Up & Running" = Don't expect a lot of detail!
I bought this book because I needed an HTML5 introduction that doesn't try to teach me HTML basics all over again. Read more
Published 6 months ago by Kalcium
Only describes the deltas with previous HTML specs
This is a nice book if you're just interested in the newer features of HTML5 and are acquainted with previous versions. Read more
Published 7 months ago by M. Vels
Great read
I thoroughly enjoyed this book. It is not a reference book, nor does it claim to be. Instead it is a book you can simply read from cover to cover that gives a concise and at times... Read more
Published 7 months ago by K. Hyland
What is HTML5 first look
This book by Mark Pilgrim entitled HTML5 Up and Running will teach you "what's new" in HTML5 and is a good first book for the novice. Read more
Published 8 months ago by Diane Cipollo
Who Says This is Not a Five X?
Pilgrom's title doesn't carry a lot of pages, but what he has it packed with a lot of information. It's perfect for someone who knows a little about HTML or someone who doesn't... Read more
Published 8 months ago by Frank Beckendorf
Great History and Good Information
This book has one of the best histories I have seen on how HTML5 has evolved.
If you don't care for that, you can just past the first few chapters and get a good start on... Read more
Published 11 months ago by Chris Harden
Search Customer Reviews
Only search this product's reviews

Inside This Book (learn more)
Browse Sample Pages:
Front Cover | Table of Contents | First Pages | Index | Back Cover | Surprise Me!
Search Inside This Book:

What Other Items Do Customers Buy After Viewing This Item?


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(53)
(21)
(8)
(5)
(3)

Your tags: Add your first tag
 

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   
Related forums



So You'd Like to...


Create a guide


Look for Similar Items by Category


Look for Similar Items by Subject