Goal: Practice accessing DOM element attributes by using
document methods and dot notation to access the properties that we learned about in previous lessons.
Clone down the Cookie Recipe HTML and open it in your web browser. Then, use the DevTools console to practice accessing different DOM elements and their attributes by working through each prompt below. Reference the previous lesson "Accessing HTML Element Attributes in the DOM" as needed. You should be able to complete all of the following prompts with just the information in the lesson.
<em>tag of the paragraph element.
Switch who's driving and observing, and complete the remaining prompts:
altattribute for the image.
<body>to change the font weight to the value
styleobject properties and apply a new style to any element.