Child elements


#1

https://www.codecademy.com/courses/learn-html-elements/lessons/intro-to-html/exercises/structure-html?action=lesson_resume&course_redirect=learn-html
I’m stuck on the tenth question, I do not know why because I think I did everything right, but I do not know, I do not want to let me go


#2

Please show us your markup so we can see what you’ve written.


#3
<!DOCTYPE html>
<html>

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

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

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

  • in there must be everyting

#4

Underneath the </div>

 <p>This paragraph is a child of the body element.</p>

#5

Hey,
But, how does this code look like?


#6
<!DOCTYPE html>
<html>
  <head>
    <title>Hello World</title>
  </head>
  <body>
   <div>
      <h1>Hello World</h1>
     <p>This paragraph is a child of the div element</p>
    </div>
    <p>This paragraph is a child of the body element.</p>
  </body>
</html>

#7

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