<html>
<body>
<h1>The HTMLCollection Object</h1>
<p>The getElementsByTagName() returns:</p>
<p id="demo"></p>
<script>
const elements = document.getElementsByTagName("p");
document.getElementById("demo").innerHTML = elements;
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_htmlcollection1 by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:39:46 GMT -->
</html>