Learn HTML by Building a Cat Photo App - Step 6

I do not understand why I am getting the problem wrong.

From what I have gathered, the purpose of this assignment is to indent the p element by two spaces to properly format the code.

However, for some reason the question keeps telling me that I am editing the h2 element of the program. Even though I am only editing the p element.

Does anyone know if this is a glitch or am seriously I misunderstanding the question?

Thanks.

My code so far:

<html>
  <body>
    <h1>CatPhotoApp</h1>

<!-- User Editable Region -->

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

<!-- User Editable Region -->

  </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/114.0.0.0 Safari/537.36

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

Link to the challenge:

You deleted the h1 element, which is confusing the tests

By the h1 element, are you referring to the CatPhotoApp part?

If so, that is how FreeCodeCamp automatically sets it up in my lesson.

No, its not how the code was originally.

This is the original code:

    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
    <p>See more cat photos in our gallery.</p>
    </main>

Its easy to make an accidental change. Here you accidentally removed the h1 element.

Oh, I see now.

Thank you for pointing that out.

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