You are previewing HTML5 & CSS3 For The Real World.

HTML5 & CSS3 For The Real World

Cover of HTML5 & CSS3 For The Real World by Louis Lazaris... Published by SitePoint
O'Reilly logo

Chapter 11Canvas, SVG, and Drag and Drop

The HTML5 Herald is really becoming quite dynamic for an “ol’ timey” newspaper! We’ve added a video with the new video element, made our site available offline, added support to remember the user’s name and email address, and used geolocation to detect the user’s location.

But there’s still more we can do to make it even more fun. First, the video is a little at odds with the rest of the paper, since it’s in color. Second, the geolocation feature, while fairly speedy, could use a progress indicator that lets the user know we haven’t left them stranded. And finally, it would be nice to add just one more dynamic piece to our page. We’ll take care of all three of these using the APIs we’ll discuss in this ...

The best content for your career. Discover unlimited learning on demand for around $1/day.