Example of Detecting HTML 5 Browsers


ATTENTION: THIS PAGE BEST VIEWED WITH HTML 5 - Please upgrade your browser or download one of the HTML 5 compatible browsers such as Mozilla Firefox. For more information, see Detecting HTML 5.

If your browser does not support HTML 5, you will see a message above.

If you are using one of the web browsers with HTML 5 support, you will see a footer using the HTML 5 <footer> tag and an <hr/> tag at the bottom of this page.

To get the source code for detecting HTML 5, download the following files:

http://www.ExampleOnly.com/html5-test.html
a web page with a message that is to appear only when displayed by non-HTML 5 browsers
http://www.ExampleOnly.com/test-html-5-detection.xsl
a site-wide footer template and conditional expression to suppress HTML elements with a class attribute containing "nohtml5"

Valid HTML 5