Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
Describe your issue in detail here.

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

<!-- 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/109.0.0.0 Safari/537.36

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

Link to the challenge:

1 Like

you have to close the opening a tag

<a href="https://freecatphotoapp.com"
1 Like

Thank You so much, can you explain further please.

1 Like
 <main>
      <h1>CatPhotoApp</h1>
<section>      <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>
      </section>     



i have problem with the section tag
1 Like

In HTML, there are two types of tags:

  • self closing ones like the image tag:
<img/>
  • others require an opening tag and a closing tag like the a tag in the example:
<a></a>

the opening tag must go inside <> and the same thing for the closing one except you need to add / at the beginning.
If you want to know more about HTML Tags check out this video

remove the / from the opening section tag

1 Like

I did not get it, please can you make it clearer. Thank You

Hello.

This new issue, is of the next step (16) and you should open a new post.

By the way, the solution is:

You have two openning and closing tags. Remove one of them.

Grets.

1 Like

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