<html>
<style>
div {
background-color: coral;
padding: 16px;
}
</style>
<body>
<h1>The Element Object</h1>
<h2>The childElementCount Property</h2>
<div id="myDIV">
<p>First p element</p>
<p>Second p element</p>
</div>
<p>Number of children in the div element is:</p>
<p id="demo"></p>
<script>
let numb = document.getElementById("myDIV").children.length;
document.getElementById("demo").innerHTML = numb;
</script>
</body>
</html>