HTML5 is revolutionizing the Web, and now it's coming to your ebook reader! With the release of the EPUB 3 specification, HTML5 support is officially a part of the EPUB standard, and publishers are able to take full advantage of HTML5's rich feature set to add rich media and interactivity to their ebook content.HTML5 for Publishers gives an overview of some of the most exciting features HTML5 provides to ebook content creators--audio/video, geolocation, and the Canvas--and shows how to put them in action. Learn how
Intersperse audio/video with textual contentCreate a graphing calculator to display algebraic equations on the CanvasUse geolocation to customize a work of fiction with details from the reader's localeEmploy MathML to create an interactive equation solverMake a coloring book using SVG and JavaScript
For me, a person who has just started to explore the self-publishing world, this book became a concise and well structured guide. Despite the fact it has only 67 pages, it was enough to wet my appetite for exploring more. Although it was released in 2011, it withstand passing time quite well, giving nice insights of what can be done with EPUB format.
Mind though, that it is not the book to learn about HTML. Examples of Canvas, Geolocation, Audio/Video, MathML and SVG are definitely rusty and outdated, but this book presents lots of reference material that should do the trick and help you nurture given topic more.
Very short overview of three specific HTML5 features. It was only after I finished it that I realised it was quite a few years old. So, presumably, all the stuff about which eReaders support the various functions is way out of date by now.
A superb introduction to what can be done with HTML5. This book is just a shallow overview of the depth available, but it is a fun overview, and whetted my appetite for learning more HTML5. I installed the examples into my rails project and fiddled with the JavaScript to make all of them work on the same page.
Nitpicky critique... The finger painting app calls: x = ev.pageX and y = ev.pageY which is right if the canvas is the only thing on the page. It took a while until I figured out that I had to get the offset in order to get it to work with other stuff on the page.
x = ev.pageX - theCanvas.offsetLeft; y = ev.pageY - theCanvas.offsetTop;
Sanders Kleinfeld, HTML5 for Publishers (O'Reilly Media, 2011)
A very high-level overview of three specific new features in HTML5; the title is a bit misleading in that regard. If you're interested in learning the basics about canvas, audio/video embedding, or geolocation, this is an interesting starting point—but eventually you will find yourself needing to grab a more in-depth resource. In other words, if you already know you are interested in incorporating these things into ebooks, you can simply skip this and dive straight into something that goes into more detail. On the other hand, if you just want to explore the possibilities, this is a quick, easy read that will do just that. **