HTML5 Guidelines for Web Developers [NOOK Book]

Overview

In HTML5 Guidelines for Web Developers, two pioneering web developers provide a comprehensive guide to HTML5’s powerful new elements and techniques through compact, practical, easy-to-understand examples. You’ll discover just how much you can do with HTML5—from programming audio/video playback to integrating geographical data into pages and applications.

This concise, friendly reference is packed with tips, tricks, and samples for making the most of HTML5 with JavaScript and the...

See more details below
HTML5 Guidelines for Web Developers

Available on NOOK devices and apps  
  • NOOK Devices
  • Samsung Galaxy Tab 4 NOOK
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac

Want a NOOK? Explore Now

NOOK Book (eBook)
$15.49
BN.com price
(Save 44%)$27.99 List Price

Overview

In HTML5 Guidelines for Web Developers, two pioneering web developers provide a comprehensive guide to HTML5’s powerful new elements and techniques through compact, practical, easy-to-understand examples. You’ll discover just how much you can do with HTML5—from programming audio/video playback to integrating geographical data into pages and applications.

This concise, friendly reference is packed with tips, tricks, and samples for making the most of HTML5 with JavaScript and the DOM. The authors present “pure HTML5” examples that are supported by browsers right now, and they share realistic insights into the challenges of leading-edge HTML5 development. All examples are available for download, with links to web resources for new information and specification updates. Topics covered include


  • Browser support: What you can (and can’t) do with HTML5 today

  • HTML5 document structure and semantics

  • Intelligent forms, including new input types, elements, and client-side validation

  • The “video” and “audio” elements, and scripting media solutions

  • Advanced graphics with Canvas and SVG

  • Geolocation in the browser, including location tracking via Google Maps

  • Web storage, offline web applications, WebSockets,and Web Workers

  • Embedding sematic markup with Microdata and the Microdata DOM API

  • Implementing drag-and-drop with the “draggable” attribute

  • New global attributes: “data-*,” “hidden,” “contenteditable,” “spellcheck,” and more

If you’re a web developer or designer with at least basic knowledge of HTML, JavaScript, and CSS, this book is all you need to masterHTML5—and get to the cutting edge of web development.

Read More Show Less

Product Details

  • ISBN-13: 9780132734646
  • Publisher: Pearson Education
  • Publication date: 7/7/2011
  • Sold by: Barnes & Noble
  • Format: eBook
  • Edition number: 1
  • Pages: 320
  • File size: 9 MB

Meet the Author

Klaus Förster, an open source enthusiast, works at the Department of Geography of the University of Innsbruck, Austria. He has attended numerous SVG Open conferences as speaker, reviewer, and workshop leader, and contributed SVG modules to the free software projects PostGIS, GRASS GIS, and SpatiaLite.

Bernd Öggl, lecturer and system administrator at the University of Innsbruck, is the coauthor of a book on PHP and MySQL and has many years of experience programming web applications.

Read More Show Less

Table of Contents

Preface xi

About the Authors xiii

Chapter 1: Overview of the New Web Standard 1

1.1 How It All Started 1

1.2 Time Travel through Historic Events 7

1.3 In Medias Res 9

1.4 Can I Start Using HTML5 Now? 16

Summary 18

Chapter 2: Structure and Semantics for Documents 19

2.1 Header with “header” and “hgroup” 21

2.2 Content with “article” 22

2.3 Footer with “footer” and “nav” 24

2.4 Sidebar with “aside” and “section” 25

2.5 The Outline Algorithm 27

2.6 Figures with “figure” and “figcaption” 28

2.7 Text-Level Semantics—More New Tags 29

Summary 35

Chapter 3: Intelligent Forms 37

3.1 New Input Types 38

3.2 Useful Attributes for Forms 43

3.3 New Elements 47

3.4 Client-Side Form Validation 57

3.5 Example: A Support Form 64

Summary 68

Chapter 4: Video and Audio 69

4.1 A First Example 70

4.2 The “video” Element and Its Attributes 71

4.3 Video Codecs 73

4.4 Tools for Video Conversion 76

4.5 Which Format for Which Browser? 82

4.6 Interim Solutions for Older Browsers 83

4.7 Video and Scripting—A Simple Video Player 86

4.8 And What About Audio? 99

Summary 105

Chapter 5: Canvas 107

5.1 A First Example 108

5.2 Rectangles 111

5.3 Colors and Shadows 113

5.4 Gradients 114

5.5 Paths 117

5.6 Text 130

5.7 Embedding Images 135

5.8 Pixel Manipulation 141

5.9 Compositing 149

5.10 Patterns 152

5.11 Transformations 156

5.12 Base64 Encoding with “canvas.toDataURL()”163

5.13 “save()” and “restore()”165

5.14 Animations 166

5.15 Anything Still Missing? 173

Summary 177

Chapter 6: SVG and MathML 179

6.1 MathML 180

6.2 SVG 182

Summary 183

Chapter 7: Geolocation 185

7.1 Introduction to Geolocation 186

7.2 A First Experiment: Geolocation in the Browser 190

7.3 Technical Background of Determining Position 193

7.4 Display of Current Position on OpenStreetMap 194

7.5 Location Tracking with Google Maps 196

7.6 Example: Geonotes 197

7.7 Browser Support 202

Summary 203

Chapter 8: Web Storage and Offline Web Applications 205

8.1 Storage 206

8.2 Offline Web Applications 212

8.3 Browser Support 220

8.4 Example: Click to tick! 220

Summary 230

Chapter 9: WebSockets 231

9.1 The WebSocket Server 233

9.2 Example: A Broadcast Server 234

9.3 Example: Battleships 239

Summary 248

Chapter 10: Web Workers 249

10.1 Introduction to Web Workers 249

10.2 Search for Leap Years 251

10.3 Calculate Altitude Profiles with Canvas 253

Summary 259

Chapter 11: Microdata 261

11.1 The Syntax of Microdata 263

11.2 The Microdata DOM API 269

Summary 271

Chapter 12: Finishing Touches: Some Global Attributes 273

12.1 News for the “class” Attribute 274

12.2 Defining Custom Attributes with “data-*” 275

12.3 The “hidden” Attribute 276

12.4 The “classList” Interface 276

12.5 Drag and Drop with the “draggable” Attribute 278

12.5.1 Drag and Drop in Combination with the “FileAPI” 284

12.6 The Attributes “contenteditable” and “spellcheck” 288

Summary 290

Afterword 293

Index 295

Read More Show Less

Customer Reviews

Average Rating 3.5
( 2 )
Rating Distribution

5 Star

(0)

4 Star

(1)

3 Star

(1)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 2 Customer Reviews
  • Posted October 26, 2011

    Good book, Not Great

    HTML 5 Guidelines is a fine book. It covers the subject matter well enough. I just didn't find anything special about this book. As another reviewer stated "This is a decent introduction to HTML5 ." and the reader after reading the book will have a much better understanding of HTML 5.

    I wondered if the authors had intended the book to be in color and the publisher choose black and white instead. The book has figures that don't really work without colors, such as Figure 5.39 (P. 169) "HSL colors for multicolored spheres animation". The figure is merely two bars with shades of black and white. Another example is Figure 5.29 a series of pictures that show color manipulation. Again the pictures are just shades of black and white. Color in not necessary in a book, but with the subject matter and examples in this book, a lot was lost.

    In the end, not sorry that I picked HTML 5 Guidelines and my HTML 5 knowledge did increase from reading this book.

    Was this review helpful? Yes  No   Report this review
  • Posted October 10, 2011

    Decent and Recommended

    As an experienced web developer who was self taught on HTML 4, I had unfounded reservation about HTML5 in general. Maybe it was the fact that the standard was changing and that I had to learn something new from scratch. Thankfully this was not the case. After reading HTML5 > Guidelines for Web Developers by Forster and Oggl, I was confident in my ability to design evolving HTML 5 compliant sites. The writing style is concise and easy to read. The topics covered, are not necessarily meant to be followed in order. One can skip and read about a certain subject. The first chapter is brief and in my opinion doesn't really add value to book. The book really starts at Chapter 2, "Structure and Semantics for Documents." One of the biggest change is that HTML5 is the fact that one no longer has to create div sections with classes name footer, header, etc. Now one can use <header> and <footer> to name a few. Another great chapter is Chapter 3, "Intelligent Forms." The authors do a good example on how to use the different elements as well as handling validation. New data types are introduced such as url, email, datetime, color, etc. Attributes are introduced as well. Some of the code is minimal but it does help the web developer understand them. On Chapter 5, "Canvas," the authors spend some time going over what they call, "One of the most interesting and at the same time one of the oldest new HTML5 elements," Canvas. It is presented in a neat and concise manner. Again there is minimal code but it does what it is suppose to do, get the web developer up to speed. Overall, HTML5 Guidelines for Web Developers is a decent book. By no means is this book the must have all in one book, but it is a great book on getting to know most features of HTML5. I definitely recommend it.

    Was this review helpful? Yes  No   Report this review
Sort by: Showing all of 2 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)