[Solved] Learn HTML by Building a Cat Photo App - Step 6

Tell us what’s happening:
I can’t seem to understand the issue here. The step is asking me to make proper indentations for elements within the main tag but still shows the following error for some reason :
You should not change the indentation on the line with your h2 element. Its opening tag should start 6 spaces over from the start of the line. You can restart the step to restore the original indentation.

Can someone help me with this?

Your code so far

<html>  <!-- signifies start of HTML -->
  <body>  <!-- signifies start of body of HTML code -->
    <h1>CatPhotoApp</h1>  <!-- main heading -->
    <main>  <!-- identify different content areas. Makes your HTML easier to read and help with Search Engine Optimization (SEO) and accessibility -->
      <h2>Cat Photos</h2> <!-- secondary heading -->
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more cat photos.</p>  <!-- used to creat a paragraph of text on websites -->
    </main>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36

Challenge: Learn HTML by Building a Cat Photo App - Step 6

Link to the challenge:

Why have you added so many unnecessary comments?

Just to help myself remember the functionality of the tags in HTML since I am just a beginner. I did experiment removing them but it didn’t help.

Reset the challenge and just add 2 spaces before the <p> tag

1 Like

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