Learn HTML by Building a Cat Photo App - Step 16

Tell us what’s happening:
I am having troubles just nesting between H2 through the end of my a element. I tried to nest with H2 through a element .

Your code so far

<html>
  <body>

<!-- User Editable Region -->

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

<!-- User Editable Region -->

  </body>
</html>

Your browser information:

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

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

Link to the challenge:

Sorry, I am not understanding what you are trying to explain, but for the challenge you do not seem to be using the correct element it tells you to use. It is telling you to use a section element which looks like this

<section> </section>

you need to put all the elements the challenge tells you to, and put them inside the section element. Here is an example of nesting elements

<div>
   <p> I am a nested paragraph </p>
   <h1> I am also nested </h1>
</div>

Both my paragraph element and my h1 element are nested inside the div element. Take this as an example, and nest the elements you need to nest inside the section element

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