Learn HTML by Building a Cat Photo App - Step 16

So I have to nest h2, comment, p, and anchor (a) elements in a section element but I don’t know what element I should use . Please help

Your code so far

<html>

<!-- User Editable Region -->

  <body>                   
    <main>                   
      <h1>CatPhotoApp<h1> 
     
      <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> 
    
    </main>

<!-- User Editable Region -->

  </body>
</html>

Your browser information:

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

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

Link to the challenge:

use a <section></section> element

1 Like

A section element is exactly what it says.

1 Like