O'Reilly logo

HTML5 Multimedia Development Cookbook by Lee Jordan, Dale Cruse

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating fallback content

"When authors use the canvas element, they must also provide content that, when presented to the user, conveys essentially the same function or purpose as the bitmap canvas. This content may be placed as content of the canvas element. The contents of the canvas element, if any, are the element's fallback content." - WHATWG HTML5 Specification

What happens if someone viewing your brilliant new canvas application is using an older browser and is unable to recognize your coding genius? Or what happens when someone uses assistive technologies? Let's take a look.

How to do it...

If, for some reason, a user's browser won't support the new canvas element, it's up to us as developers to give them something valuable instead.

Here ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required