Fallback Image code

If I upload a animated banner to my website do I need to add code that falls back to a static image if the browser doesnt support html5, and if so does anyone know how to do this.

I think it’s been worked on:

However would this help, instead of detecting IE would this work for detecting HTML 5?

Also note that Hype supports a wide range of non-HTML5 browsers, from Internet Explorer 6 onwards. In general fallbacks are only required for users without javascript enabled (which is rare) or specific purposes (like ad networks).