I got stuck at challenge 6

Tell us what’s happening:
Describe your issue in detail here.
i need help at step 6,i do not know where to place main open tag.

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
     
  <main><h2>Cat Photos</h2>  
  <!-- TODO: Add link to cat photos -->
  <p>Click here to view more cat photos.</p></main>
  </main>
</body>
</html>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0

Challenge: Step 6

Link to the challenge:

The <h2> <p> tags and comment should be inside the <main> tag
indented by four spaces / tab

Hey Dude! You’re doing great. You just made a small mistake. Always remember that the text inside a parent element should be indented. So inside your main element, everything should be indented by four spaces or a tab. And you have added one extra main element. I have modified it.
Your code:

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

Correct Code:

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

:slightly_smiling_face:

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