Having trouble nesting elements, tried different ways but not going so well

Tell us what’s happening:
I’ve tried nesting the elements in different ways and it doesn’t seem to work, I didn’t really receive that much information from what the exercise needed me to complete.

I understood that I was placing a nesting element in the input element which I’m taking is the main element. I don’t know if my spacing is off or if I should be using different elements.

It keeps telling me " Your comment should be below h2 element and start 6 spaces over from the start of the line"

Which I think I did lol, please help at your earliest convenience.

Thank you
Your code so far

<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <h2>Cat Photos</h2>
      <li>Child Element 1 </li>
      <li>Child Element 2 </li>
    </main>
  <!-- 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/102.0.5005.124 Safari/537.36 Edg/102.0.1245.41

Challenge: Step 6

Link to the challenge:

I would reset the code. The instructions don’t want you to paste in bits of the example. You only need to add two more spaces on three lines so that your h2, comment, and p elements shift to the right.

Thank you so much! I will go ahead and try that out now!

1 Like

I’m sorry, but I am so confused by what you mean by “add two more spaces on three lines”

What is your current code?

I literally mean to take the original code and use the space bar to add two additional spaces at the beginning of each of those three lines.

<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>

Right, so use the space bar to add two spaces at the start of each of these lines.

OMG why do I feel so stupid right now lol I was here making it wayyyy more intricate than it was!!! Again, thank you !!!

Yup. We’ve all been there

1 Like