<html>
<body>
<h1>The Element Object</h1>
<h2>The nextElementSibling Property</h2>
<ul>
<li id="item1">Coffee (first item)</li>
<li id="item2">Tea (second item)</li>
</ul>
<p>The HTML content of the next sibling of the first list item has the text:</p>
<p id="demo"></p>
<script>
let text = document.getElementById("item1").nextElementSibling.innerHTML;
document.getElementById("demo").innerHTML = text;
</script>
</body>
</html>