en.javascript.info/2-ui/1-document/03-dom-navigation/1-dom-children/task.md
2019-08-31 01:26:05 +02:00

322 B

importance: 5


DOM children

Look at this page:

<html>
<body>
  <div>Users:</div>
  <ul>
    <li>John</li>
    <li>Pete</li>
  </ul>
</body>
</html>

For each of the following, give at least one way of how to access them:

  • The <div> DOM node?
  • The <ul> DOM node?
  • The second <li> (with Pete)?