Learn HTML by Building a Cat Photo App - Step 20

Tell us what’s happening:

hey I can’t passe this step it said Your second h2 element should be right above the second section element’s closing tag. It is not in the correct position but I can’t understand how to fix the problem. thank u

Your code so far


<!-- User Editable Region -->

</head>
<body>
  <main>
    <h1>CatPhotoApp</h1>
    <h2>Cat Photos</h2>   


    <section>
      <p>Everyone loves <a href="https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg" target="_blank">cute cats</a> online!</p>
      <p>See more <a href="https://freecatphotoapp.com" target="_blank">cat photos</a> in our gallery.</p>
    </section>

    <h2>Cat Lists</h2>
    <section>
      <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>   

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

<!-- User Editable Region -->

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/18.1.1 Safari/605.1.15

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 20

reset the step, you will see an empty section element, inside that add the h2

2 Likes