Stuck at elements and structure


#1

I don’t know what I did wrong, please help!

https://www.codecademy.com/courses/learn-html-elements/lessons/intro-to-html/exercises/structure-html?action=lesson_resume&course_redirect=learn-html

The error message I get is: Did you place the paragraph inside the div element?

I really think I did everything correctly, please help.

The code I have is:

<!DOCTYPE html>
<html>

  <head>
    <title>Hello World</title>
  </head>

  <body>
    <h1>Hello World</h1>
    <p>This paragraph is a child of the body element</p>
    <div>
      <p>This paragraph is a child of the div paragraph</p>
		</div>
  
  </body>
</html>



#2

Try flipping the paragraph and div around (have the body paragraph follow the div).


#3

Hey, thanks for the quick reply, just tried it and it worked. Again, thanks :slightly_smiling_face:


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.