Please help and explain?!

Tell us what’s happening:
Im lost at step 12. Im trying to change cat photos in (p) element to a link but dont know how. New to this

  **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"></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/102.0.0.0 Safari/537.36

Challenge: Step 12

Link to the challenge:
https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-html-by-building-a-cat-photo-app/step-12Preformatted text

Hi ek_beginner you can try the following

<p>Click here to view more cat photos <br />
    <a href="https://freecatphotoapp.com" target="_blank">
         <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
    </a>
</p>

You can rap the link tag <a></a> around the image <img />, and then rap the paragraph tag <p></p> around the link.

The <br /> tag is for moving content to the next line. In this case, its moving the link + image to the next line.

Hope it helps.
Happy coding!

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