I find it difficult to indent my h2 element, comment and p elements under the main

I find it difficult to indent my h2 element, comment and p elements under the main

  **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/102.0.5005.63 Safari/537.36 Edg/102.0.1245.30

Challenge: Step 6

Link to the challenge:

Because your h2 element is one lined and closed within that line, same as your p element, they are nested in your “main” element, therefor they needn’t be indented more.

However, if you wish to indent more, go to the beginning of the “<” and hit your ‘tab’ key

Going by what you pasted above, it looks like you only indented them on space instead of two.

thank you guys i got it

1 Like

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