<html>
<body>
<ul id="menu">Teas
<li>Darjeeling</li>
</ul>
<script>
document.getElementById("menu");
</script>
</body>
</html>]]>- It accesses the parent of the
li
element - It creates an
ul
element - It changes the ID of the
ul
element It accesses the parent of the li
element.