HTML5 Doctor » book http://html5doctor.com helping you implement HTML5 today Tue, 17 Mar 2015 16:12:06 +0000 en-US hourly 1 http://wordpress.org/?v=3.9.1 Review: HTML5 Multimedia: Develop and Design https://stevefaulkner.github.io/html5doctored/review-html5-multimedia-develop-and-design/ https://stevefaulkner.github.io/html5doctored/review-html5-multimedia-develop-and-design/#comments Tue, 28 Aug 2012 17:03:18 +0000 http://html5doctor.com/?p=4744

Related Posts:

]]>
With a number of HTML5 books now available, we’re starting to see them cover more specific areas of HTML5. HTML5 Multimedia: Develop and Design, written by fellow HTML5 Doctor Ian Devlin, focusses on native multimedia in HTML5. Read my review below to find out what it’s all about.

Disclosure: Ian is a friend of mine (though I’ve never met him in real life, so I can’t actually confirm he exists), an HTML5 Doctor, and a fellow curator of HTML5 Gallery. This review isn’t biased though. It’s an honest opinion of the book.

I’ve been meaning to write this review since the book came out — and before Ian joined the surgeons on this site — but I didn’t get around to it. Thankfully much of the book is still relevant.

Although Ian’s book is primarily about HTML5 multimedia, he actually covers much more, including brief introductions to new HTML5 elements, parts of CSS3, canvas, SVG, and WebSockets whilst linking them all back to native multimedia. It’s a comfortable length, easy to read, has solid examples, and dives into lots of detail in places. There’s useful, practical information regarding such things as MIME types and MP4 profiles and other gotchas that you don’t always see in other books and articles. And the best thing: Ian has tested all this himself and not relied on someone else’s word.

Cover of HTML5 Multimedia: Develop and Design Book
HTML5 Multimedia: Develop and Design, by Ian Devlin

The book starts with an introduction to HTML5, including a potted history and some detail about many of the new elements. You can probably skip this chapter if you know a bit about HTML5.

The second chapter is dedicated to the history of web-based multimedia. Ian manages to tell the story in detail without making it boring. I found the web multimedia history lesson very interesting as it reminded me of the pains we endured making sites in the early days of the web. This chapter also introduces the four main multimedia elements (<audio>, <video>, <source>, and <track>) covered in the book, along with their associated attributes.

Chapters 3 and 4 cover <audio> and <video> and their attributes in further detail. It’s well-written and easy to understand with good humour expressed throughout the examples. Ian does perhaps gloss over some of the downsides, such as having to encode and host files multiple times, particularly for commercial sites (although it is mentioned in passing in Chapter 4). This is understandable, though, as native multimedia is still overall a big win for developers and users.

For video in particular, there’s good coverage of media queries and media types and even caveats for Android (or targeting other devices and serving appropriate content). Ian also includes a helpful tip about qtindexswapper that you may have seen in Ian’s recent Multimedia Troubleshooting article.

The next chapter covers the media API. It’s a simple and easy-to-follow introduction for someone (like me) who doesn’t write a lot of JavaScript. Ian shows how to script your own controls, amongst other things. It would’ve been nice to see complete code examples at the end of each section, so you could see exactly where each portion of the script fits in relation to the others.

Chapters 6 and 7 cover styling with CSS. If you’re up to speed with CSS3, then you should find it all simple enough. There’s all your standard rounded corners, gradients, and shadow shizzle included. The object properties and transitions and animation are also covered, which are good to know about.

I do have to question the value of these chapters for readers. Perhaps it’s beneficial for those with little knowledge of CSS, but overall these chapters feel too long and take up a large portion of content that could have been used to explore the API or accessibility (“a11y”) in more detail.

Speaking of a11y, that’s covered in Chapter 8. It includes a thorough introduction to WebVTT, the <track> element, and keyboard interaction. I would have liked to see Ian dig a little deeper and look at other a11y areas that are appropriate to multimedia.

Ian then looks at using video with canvas and SVG. He includes some useful ideas such as taking a screenshot using canvas or grey-scaling a video. For SVG, there are some excellent tips about masking and animating masks over video using SVG shapes (plus a brief intro to SVG for those who haven’t used it). He introduces SVG filters, but it was unclear to me how I link the SVG filters to the actual video files. Again, I think complete final examples would have been good to see here.

The book closes with a useful overview of where native multimedia is heading and introduces a number of new APIs coming soon (or already here in some cases) to a browser near you.

Summary

In summary, the book is easy to read and has an appropriate level of detail throughout with good examples to supplement the explanation. I’d definitely recommend this book to anyone who’s looking to do more with HTML5 Multimedia than simply add it to a site as you see in a lot of tutorials.

Review: HTML5 Multimedia: Develop and Design originally appeared on HTML5 Doctor on August 28, 2012.

]]>
https://stevefaulkner.github.io/html5doctored/review-html5-multimedia-develop-and-design/feed/ 3
Review: HTML5 Designing Rich Internet Applications https://stevefaulkner.github.io/html5doctored/review-html5-designing-rich-internet-applications/ https://stevefaulkner.github.io/html5doctored/review-html5-designing-rich-internet-applications/#comments Fri, 28 Jan 2011 14:30:06 +0000 http://html5doctor.com/?p=2881 HTML5: Designing Rich Internet Applications by Matthew David (Focal Press). I'll be honest and up front, this is a pretty negative review. I've been sitting on it for months, but decided to post it as people have asked our opinion of this book.

]]>
HTML5: Designing Rich Internet Applications by Matthew David (Focal Press)

I’ll be honest and up-front: this is a pretty negative review. I’ve been sitting on it for months, but decided to post it as people have asked our opinion of this book.

HTML5: Designing Rich Internet Applications by Matthew David
Figure 1: Cover of HTML5 Designing Rich Internet Applications by Matthew David

Firstly, it’s true that all books have errors. As well as typos, there are authoring brain-farts (the book I co-wrote with Remy claims there is a <heading> element, for example). There is also the risk, when writing on a moving target like HTML5, that the spec will change after the book has gone to press.

About the book

Four of us doctors have read this book (figure 1) and in our opinion it contains an unacceptable number of errors which makes it misleading to the reader.

  • The preface claims "a group called the Web Standards project began developing HTML5 in 2007". It didn’t; it was the WHATWG, in 2004.
  • In "spring 2010 .. Microsoft formerly [sic] joined the HTML5 Working Group". Chris Wilson, then lead of Internet Explorer, was co-chair in 2006.
  • Page 11 mentions the <m> element. There isn’t one; it was renamed to the <mark> element (as it’s correctly called on page 22) before June 2008, at least 2 years before this book was published July 2010.
  • Page 19 discusses the <dialog> element, which was removed from the spec in September 2009.
  • Page 27 tells us "The W3C had already begun modernizing the FORM element, called Forms 2.0, before HTML5". The WHATWG started with Webforms 2; the W3C had worked on XForms 1.0.
  • There is a <navigation> element used extensively in the chapter "Building a web site using HTML5 blocking elements" — this should be the <nav> element.
  • Page 72 tells us “The ANCHOR element has four pseudo classes: link, active, hover and visited”, omitting the focus pseudo-class which is vital for accessibility, as it is applied when a user navigates to a link using the keyboard rather than hovering with a mouse.
  • Page 73 says “New to CSS3 is a new extension called pseudo elements”. Pseudo-elements were there from CSS 1.

The book also promotes several examples of bad coding practices:

  • <br/><br/> pairs to force new lines
  • classitis (<footer class="footerStyle">)
  • form <label>s are not accessibly associated with their <input>s
  • not using the full vendor-prefix stack (-moz-, -ms- , -o-, -webkit-, [no prefix]) resulting in code that is neither future-proof nor cross-browser
  • bad semantics, for example <p class=mainTitleStyle> rather than using an HTML heading

The author’s website is http://matthewdavid.ws.

What I do recommend

So I can’t recommend this book. I can, however, recommend any of the following resources:

Have you read this book? What did you think of it? Let us know in the comments.

Reviewed by Bruce Lawson, Richard Clark, Oli Studholme and Tom Leadbetter.

Review: HTML5 Designing Rich Internet Applications originally appeared on HTML5 Doctor on January 28, 2011.

]]>
https://stevefaulkner.github.io/html5doctored/review-html5-designing-rich-internet-applications/feed/ 15
Reviewing HTML5 for Web Designers https://stevefaulkner.github.io/html5doctored/reviewing-html5-for-web-designers/ https://stevefaulkner.github.io/html5doctored/reviewing-html5-for-web-designers/#comments Tue, 27 Jul 2010 13:50:05 +0000 http://html5doctor.com/?p=2213 HTML5 for Web Designers, written by Jeremy Keith, is the first book to be published under the A Book Apart brand, founded by Mandy Brown, Jason Santa Maria, and Jeffrey Zeldman.

]]>
HTML5 for Web Designers, written by Jeremy Keith, is the first book to be published under the A Book Apart brand, founded by Mandy Brown, Jason Santa Maria, and Jeffrey Zeldman.

When the book first landed on my doorstep, I was a bit let down by its meagre length of around 85 pages. I have to be honest, however, and admit I had not done my research before its arrival. From the book’s inception, the publishers stated that they intended to produce something to fill the gap between a blog post and book, something that people would be able to pick up, read quickly, and start implementing straight away.

So I set aside my disappointment and started reading this beautifully crafted book.

HTML5 for Web Designers Book — Image source — used with permission

After reading through it, my opinion has changed. I realise exactly what A Book Apart were aiming to create when they decided on a short format for the series. HTML5 for Designers is split up into six bite-size chapters:

  1. Chapter One: a brief history of markup
  2. Chapter Two: the design of HTML5
  3. Chapter Three: rich media
  4. Chapter Four: web forms 2.0
  5. Chapter Five: semantics
  6. Chapter Six: using HTML5 today

To give you some insight each chapter’s topics, I’ve described them each briefly.

Chapter One

The first chapter lays out the foundations of the book and explains how, as a community, we arrived at the latest iteration of our favorite markup language, HTML5. Keith discusses how HTML was born, the ill-fated transition from HTML to XML (which never happened), the suggestion of XHTML2, and why we write “HTML5″ instead of “HTML 5″.

You might be tempted to skip straight to the second chapter, but I firmly believe that you should read this. It’s vital material, and you’ll almost certainly learn something. (I sure did!)

Chapter Two

Chapter two discusses how to convert web pages from XHTML 1 to HTML5. It also touches on elements that changed in HTML5 and some elements that are absent from the specification.

Chapter Three

In chapter three, the book delves into the realms of rich media and what it means for designers and developers. Keith hints that this chapter could have a whole book dedicated to it (perhaps hinting at an upcoming A Book Apart title?). He does a good job describing the possibilities of <canvas> and showing a few examples of its capabilities. Although some readers may wish for more depth, this book is of course written for designers, so detail is kept to a minimum.

Keith goes on to explain the possibilities of the <audio> and <video> elements, something which many argue will change the way we work with the web. Keith gives great examples on how to introduce these elements into your client work with various fallback options for browsers that lag behind.

Chapter Four

In chapter one, it’s explained that HTML5 started life as Web Apps 1.0 and Web Forms 2.0, which were later merged. So as one might imagine, Web Forms were destined to become an integral part of the HTML5 specification.

Chapter four covers the new elements and attributes for use in forms, including placeholder, required, autocomplete, datalist, new input types, sliders/spinners, and dates and times.

Chapter Five

Chapter five covers semantics (although I feel that this should have been one of the first chapters in the book). Elements discussed include <mark>, <time>, <meter>, and <progress>, as well as the usual structural elements that get used in nearly every site.

Chapter Six

Finally, chapter six discusses the most important question about HTML5: Can we use it today? I trust, as you are on this website, that you will already know the answer to that question.

My opinion of HTML5 for Web Designers

After finishing this book, I discovered that it is in fact quite a gem for anyone starting on their HTML5 journey.

There are undoubtedly areas that could have been expanded further, but the limitations imposed by the authors meant merciless fat-trimming. This is the type of book that you would be happy to keep on your desk as a quick reference manual, a shortcut before diving into the full HTML5 specification.

I would definitely recommend buying this book if you haven’t already. It’s true that great things come in small packages!

Buy the book directly from A Book Apart

Reviewing HTML5 for Web Designers originally appeared on HTML5 Doctor on July 27, 2010.

]]>
https://stevefaulkner.github.io/html5doctored/reviewing-html5-for-web-designers/feed/ 11