Ahora HTML5 parece ser más popular. Para considerar la compatibilidad, algunos expertos frontales agregarán códigos a las páginas web para juzgar el navegador del cliente y saben si el navegador del usuario admite HTML5. Aquí hay dos formas en que quiero usarlo yo mismo.
Método 1,
<script> función checkhtml5 () {if (typeof (worker)! == "indefinido") {alert ("soporte html5"); } else {alerta ("no admite html5"); }} </script>Método 2,
<Canvas id = "Canvas"> </ Canvas> <Script> if (! Document.getElementById ("Canvas"). getContext) {alert ("html5 no compatible);} else {alert (" html5 ");} </script>Método 3:
<script> window.onload = function () {if (! window.applicationCache) {alert ("Su navegador no admite html5!"); }} </script>Si hay una mejor manera, ¡contácteme! Gracias