<html>
<body>
<h1>The Element Object</h1>
<h2>The append() Method</h2>
<div id="myDiv"></div>
<p>Click "Append" to append text to a div:</p>
<button onclick="myFunction()">Append</button>
<script>
function myFunction() {
const div = document.getElementById("myDiv");
div.append("Hello! I am appended text.");
}
</script>
</body>
</html>