Creating a word to a link

** Turn the words cat photos located inside p element into a link by replacing the words with the anchor element added previously. The p element should show the same text in the browser, but the words cat photos should now be a link. There should only be one link showing in the app.

  **Your code so far**

<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>
      <a href="https://freecodecamp.org">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 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0

Challenge: Step 12

Link to the challenge:

Hello,
Welcome to the Forums :wave:


There are some small errors in your code:

  • You have two a elements, you have to delete the a element outside the p element

  • The href of the a element should be https://freecatphotoapp.com not https://freecodecamp.org.

  • There should be the text Click here to view more inside the p element but before the anchor element.

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