I'm stuck in small task..
hello, everybody.. I created paragraph element and I think I stored in newParagraph variable but it keeps telling me Bummer. I have little dyslexia and sometimes I feel the explanations for the task are not enough to understand what they want me to do. please help me :(
var contentDiv = document.getElementById('content'); var newParagraph = document.getElementsByTagName('p');
<!DOCTYPE html> <html> <head> <title>DOM Manipulation</title> </head> <link rel="stylesheet" href="style.css" /> <body> <p>I'm a Paragraph</p> <div id="content"> </div> <script src="app.js"></script> </body> </html>
Jonathan GrieveTreehouse Moderator 84,422 Points
You're going about this in slightly the wrong way.
let variable = document.createElement('element');
good luck! :-)