- Describe what a DOM tree is
- Explain why a DOM tree is useful
- Use selectors to access
HTMLElement
s - Traverse the DOM tree by using
HTMLElement
methods - Manipulate existing DOM tree
HTMLElement
s - Create and append
HTMLElement
s to the DOM tree.
- With your tables, explain what the DOM Tree is.
- Convert the following HTML to a DOM tree
<div>
<div>
<p>Title</p>
</div>
<div>
<p>Frozen (2013)</p>
</div>
</div>
With your table, explain why the DOM tree is useful.
On your slates, write the code to access .movieTitle
.
<div>
<div>
<p class="title">Title</p>
</div>
<div>
<p class="movieTitle">Frozen (2013)</p>
</div>
</div>
With your tables, create a definition of each of the following traversal methods
- childNodes
- firstChild
- lastChild
- parentNode
- nextSibling
- previousSibling
With your table, manipulate the CNN.com site to create your own headline. Be prepared to present.
With your table, add a new story. Be prepared to present.