Step 12 code Turn 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

Tell us what’s happening:
Describe your issue in detail here.

  **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 cat photos </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_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Safari/605.1.15

Challenge: Step 12

Link to the challenge:

Hi!

You should turn the words cat photos that are already inside <p> into a link, instead of writing cat photos again next to it. Also, you put the <a> element next to the <p> element when in fact, it should be nested inside <p>.

Thank you for helping me out! Have a great day…

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