Learn HTML by Building a Cat Photo App - Step 18

Tell us what’s happening: I have problems on quiz 18, it keeps saying “ Your second h2 element should be right above the second section element’s closing tag. It is not in the correct position.” And i’ve tried it but I still think im doing it wrong.

Describe your issue in detail here.

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <section>
        <h2>Cat Photos</h2>
        <!-- TODO: Add link to cat photos -->
        <p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>
        <a href="https://freecatphotoapp.com"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>
      </section>

<!-- User Editable Region -->

      <section>
       <h2></h2> <p Cat Lists </p>
     </section>

<!-- User Editable Region -->

    </main>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Safari/605.1.15

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 18

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

remember that an opening tag looks like <elementName>, do you have the >?

I’ve added it just now and it says the same thing

Post your challenge instructions. Let I see.

Hi @victor15

The instructions are asking you to code a level 2 heading.

You seem to have added an incorrectly syntaxed paragraph element.
Please remove the opening and closing p tags from the above code block, then place the text inside the h2 element.

Happy coding

1 Like