Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening: I don’t think I have two anchor elements but it says I do.

  <p>Click here to view more <a>https://freecatphotoapp.com.<a/></p>  
  <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
</main>

Test
Sorry, your code does not pass. Don’t give up.

Hint
Your code should only contain one anchor (a) element.
Your code so far

<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more <a>https://freecatphotoapp.com.<a/></p>  
    <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
  </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/103.0.5060.134 Safari/537.36 Edg/103.0.1264.71

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

Link to the challenge:

Ah. The tests are getting confused because this a element is completely wrong and it can’t find a correct one, so it thinks there are two. (Probably something we can improve about the test)

You should use the original anchor element you finished on the last step, but move it to the p element

1 Like

Thank you sooo much.

1 Like