Step 12 urn the words cat photos located inside p element into a link using the same value for the href attribute as the link below the p element

My code seems wrong. The suggestion is I should have only have one anchor (a) element. My code is below

  <p>Click here to view more <a href="https://freecatphotoapp.com">cat photos</a> </p>
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more cat photos</p>
    <p>Click here to view more <a href="https://freecatphotoapp.com">cat photos</a></p>
    <a href="https://freecatphotoapp.com">cat photos</a>
    <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 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36

Challenge: Step 12

Link to the challenge:

Your code has two anchor elements, so you need to delete the second one.

From the instructions:

Make sure to remove the a element with the text cat photos on the line below the p element.

But you also have two p elements - in the preview pane, you can see that the sentence “Click here to view more cat photos” appears twice.

So you also need to delete the first p element - the one that doesn’t contain a link.

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