The easiest way to check for support of the video and audio tags is to dynamically create one or both with scripting and check for the existence of a function:
<!DOCTYPE HTML> <html> <head> <title>Canvas tutorial</title> <script> function draw(){ var hasVideo = !!(document.createElement('video').canPlayType); if(hasVideo) document.write("your brouser has video support"); else document.write("doesn't has video support"); } </script> </head> <body onload="draw();"> </body> </html>