Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
What is " Your anchor (a ) element should have an opening tag. Opening tags have this syntax: <elementName> ." mean?
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>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" <a href="https://freecatphotoapp.com" /a> alt="A cute orange cat lying on its back.">
    </main>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15

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

Link to the challenge:

Hi there,What is your isuue.

1 Like

An img element must have an alt attribute,
Attribute alt not allowed on element a, and then check all opening and closing tags

1 Like

Please click reset to return the code back to its initial state.
After that, try to add the anchor’s opening tag on the left of the img and the closing tag on the right of the img.

1 Like