What is wrong with this code that i am writing?

so the prompt is : add two spaces in front of the three child elements of main so your html is more readable.

I think i am doing it correctly but every time I go to check it i get get this prompt:

Your h2 element should be below the main element’s opening tag and its opening tag should start 6 spaces over from the start of the line.
can someone show me what i am doing wrong with example please ? thankyou
Your code so far

<html>
<body>
  <h1>CatPhotoApp</h1>
    <main>         
          <h2>Cat Photos</h2>     
    <ul>
          <li></li>
          <li></li>
          <li></li>
     </ul>  
  <!-- 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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36

Challenge: Step 6

Link to the challenge:

Hi, just remove the ul and everithing inside, use spaces no tabs, child elements move 2 spaces from the father elemens.

Like this.

Cat Photos



Click here to view more cat photos.


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

I think you’re taking the question too literally. When you look at the code in question, all of the text including the ‘<’ is all the way to the left. Add 2 spaces before the ‘<’ on the h2, the comment and the p and you should be set.

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