<html>
<body>
<h1>The Element Object</h1>
<h2>The firstChild Property</h2>
<div id="myDIV"><p>A paragraph (First child)</p><p>A paragraph (Second child)</p></div>
<p>The node name of "myDIV"s first child node is:</p>
<p id="demo"></p>
<script>
let text = document.getElementById("myDIV").firstChild.nodeName;
document.getElementById("demo").innerHTML = text;
</script>
</body>
</html>