Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
Describe your issue in detail here.
Hello so I’m a bit confused here, so I don’t understand when its telling me “our anchor (a ) element should have an opening tag. Opening tags have this syntax: <elementName>” . I am just stuck in this part?
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 -->

      <img href=https://freecatphotoapp.com 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/111.0.0.0 Safari/537.36

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

Link to the challenge:

Welcome to our community!

If you have to turn an image into a link, follow the rule:

<a href="url"><img src="url"></a>

This is guidance.

The ‘a’ element (has both tags <a> </a>) is actually the anchor element.

ok thank you, I will try that

1 Like

Hey their, I am stuck in another one, its on step 16 "Before adding any new content, you should make use of a section element to separate the cat photos content from the future content.

Take your h2, comment, p, and anchor (a) elements and nest them in a section element."

Please make a new post about new challenge. If the given answer helped you to solve the problem, mark the answer as the solution in order to tell other members that this topic is closed.

ok gotcha thanks :+1:

1 Like

Just a suggestion to think about next time. The ‘solution’ always goes to the member of community who actually solved the issue.

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