<html>
<body>
<h1>The template Tag</h1>
<p>Test to see if the browser supports the template element:</p>
<script>
if (document.createElement("template").content) {
document.write("YES! The browser supports the template element");
/*write code for browsers with TEMPLATE support*/
} else {
document.write("No! The browser does not support the template element");
/*write alternative code for browsers with no TEMPLATE support*/
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/tags/tryit.asp?filename=tryhtml5_template4 by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:00:02 GMT -->
</html>