<html>
<body>
<h1>The HTMLCollection Object</h1>
<h2>The item() Method</h2>
<p>I am a paragraph.</p>
<p>I am a paragraph.</p>
<p>I am a paragraph.</p>
<p>Click "Change" to change the HTML content of the first p element:</p>
<button onclick="myFunction()">Change</button>
<script>
function myFunction() {
document.getElementsByTagName("p")[0].innerHTML = "Paragraph changed.";
}
</script>
</body>
</html>