<html>
<body>
<h1>The Element Object</h1>
<h2>The textContent Property</h2>
<ul id="myList">
<li>Coffee</li>
<li>Tea</li>
</ul>
<p>The text content of the ul element is:</p>
<p id="demo"></p>
<script>
let text = document.getElementById("myList").textContent;
document.getElementById("demo").innerHTML = text;
</script>
</body>
</html>