Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:
Describe
I have been trying to replace the anchor element with a link described as “cat photos” in my paragraph but after running my code, i get a feedback that i shouldn’t have more than one anchor element. This happens when there’s only one anchor element so im quite confused

  **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 href="https://freecatphotoapp.com" </p> cat photos
    <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 (X11; CrOS aarch64 14469.58.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.86 Safari/537.36

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

Link to the challenge:

Welcome to the community!!! Couple of small errors. You <a> doesn’t have a closing tag so the test is reading that everything after is part of the anchor element. An opening and closing tag looks like <span> and </span> respectively. The second is that you a tag should be inside your p element. Third, you want your a element to be touching the phrase you want to make a link. Otherwise it will make any spaces included into link as well, and the test will not pass.

1 Like