JavaScript JavaScript and the DOM Making Changes to the DOM DOM Manipulation

Vladimir Lapcevic
Vladimir Lapcevic
5,921 Points

I do not understand what is requested from this step.

Could you please rephrase this question? (Give some more hints what is needed to be done)

const contentDiv = document.getElementById("content");
let newParagraph = document.createElement('p');
<!DOCTYPE html>
        <title>DOM Manipulation</title>
    <link rel="stylesheet" href="style.css" />
        <div id="content">

        <script src="app.js"></script>
Antti Lylander
Antti Lylander
9,647 Points

Which step? I can see that you have solved first step, so probably you are stuck at second step.

1 Answer

Antti Lylander
Antti Lylander
9,647 Points

Assuming you are strugling with the second task:

element.className = 'class-name'

just replace element and class-name with correct values