Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h1>The Document Object</h1>
<h2>The images Property</h2>
<img src="klematis.jpg" alt="flower" width="150" height="113">
<img src="klematis2.jpg" alt="flower" width="152" height="128">
<img src="smiley.gif" alt="Smiley face" width="42" height="42">
<p>The number of images is:</p>
<p id="demo"></p>
<script>
let numb = document.images.length;
document.getElementById("demo").innerHTML = numb;
</script>
</body>
</html>