HTML5 is new version of HTML and many people does not aware of it. In article, we checked html 5 is support in browsers through javascript. HTML5 is a new version of HTML and XHTML. The HTML5 draft specification defines a single language that can be written in HTML and XML.
check html 5 is support in browsers through javascript
It attempts to solve issues found in previous iterations of HTML and addresses the needs of Web Applications, an area previously not adequately covered by HTML.
In one of my project I need to use HTML5 methods and properties through javascript. So first I need to check or dectect with multiple browsers is there way to find HTML5 compability with browsers.I
Main introduced features are like canvas, video, or geolocation. Using that we can easily dectect the browsers compability.
if (navigator.geolocation) { /* geolocation is available */ } else { alert("I'm sorry, but geolocation services and HTML5 are not supported by your browser."); } or if (window.postMessage) { /* postMessage method is available */ } else { alert("I'm sorry, but postMessage method and HTML5 are not supported by your browser."); }
I am still searching for better solution…