<html>
<body>
<h1>The Element Object</h1>
<h2>The children.length Property</h2>
<p>How many elements does "myDIV" have?</p>
<p id="demo"></p>
<div id="myDIV">
<p>I am a paragraph</p>
<p>I am a paragraph</p>
<p>I am a paragraph</p>
</div>
<script>
let count = document.getElementById("myDIV").children.length;
document.getElementById("demo").innerHTML = count;
</script>
</body>
</html>