<html>
<body>
<h1>The Document Object</h1>
<h2>The embeds Property</h2>
<p>The number of embed elements in this document:</p>
<p id="demo"></p>
<embed type="image/jpg" src="pic_trulli.jpg">
<embed type="image/jpg" src="pic_trulli.jpg">
<script>
let num = document.embeds.length;
document.getElementById("demo").innerHTML = num;
</script>
</body>
</html>