How to turn my anchor element to a link using href

Tell us what’s happening:
how do I change cat photos to a link using href in in the anchor 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 cat photos.</p>
    <a href="https://freecatphotoapp.com">https://catphotos.com</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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Challenge: Step 12

Link to the challenge:

The code so far has an anchor element situated below the paragraph. They are separate, and the instructions are asking you to bring the anchor element into the paragraph by wrapping the word “cat photos” in the anchor ie cat photos (<<Not the answer, just an example, use the anchor as it is in the existing code!) . It turns the word into a link that users can click on and follow the href attribute.

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