<html>
<body>
<h1>The Document Object</h1>
<h2>The doctype Property</h2>
<p>The document.doctype.name is:</p>
<p id="demo"></p>
<script>
const doctypeObj = document.doctype;
document.getElementById("demo").innerHTML = doctypeObj.name;
</script>
</body>
</html>