Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:

how to nest elements in a section element

Your code so far

<html>
  <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>

<!-- User Editable Region -->

      <a <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">

<!-- User Editable Region -->

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

Your browser information:

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

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 15

Welcome to the forum @Josephine1

You appear to have altered code for the anchor element surrounding the image element, and also removed the section element element that was below that.

Please reset the step to restore the original code and try again.

Happy coding

@Josephine1
Hello!
Welcome to the fCC community. The fCC community is here to serve you, but we need your help so we can serve you better. What is your question, or what are you struggling with? What have you already tried, and what was the results? In the future please address the things mentioned above. You’ll get better results. It’s about good communication.
Looking at your code, and step 16, I noticed that your anchor tag is incomplete.

You have part of the opening anchor tag which is great, but you are also missing the closing anchor tag plus the anchor tag attributes needed.


Look at this image, it has an example of the syntax of an anchor tag. Use this as a guide.
https://www.semrush.com/blog/html-anchor/ Here is the link if you would like to read more on it. Good luck resolving your issue.
If this solves your issue please hit the like button, as well as mark this as solution.
image

Happy Coding!