I dont know where to put the child codes

Tell us what’s happening:
Describe your issue in detail here.
i dont know where to put the child codes

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>

    
    <main>
  <h2>Cat Photos</h2>

  <!-- TODO: Add link to cat photos -->
  <p>Click here to view more cat photos.</p>
  </main>

  
</body>
</html>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.53 Safari/537.36 Edg/103.0.1264.37

Challenge: Step 6

Link to the challenge:

when we say the span is a child of the div we mean that the span is inside the div

Here the span is a sibling and not a child
<div></div>
<span></span>
Here the span is a child of the div element
<div>
  <span></span>
</div>

and we add a 2 spaces before the child element to make the code clean and readable

Before:
<div>
<p></p>
<div>
<span></span>
</div>
</div>
After:
<div>
  <p></p>
  <div>
    <span></span>
  </div>
</div>

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