Learn HTML by Building a Cat Photo App - Step 10

am still puzzled on how to link a page to another one

  **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>
    <img src<a href>="https://cdn.freecodecamp.org/curriculum</a>/cat-photo-app</a>/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/104.0.0.0 Safari/537.36

Challenge: Learn HTML by Building a Cat Photo App - Step 10

Link to the challenge:

Hey, so your ‘a’ element is your link. It requires the ‘href’ property , which you can think of as your destination.
The ‘img’ element requires the ‘src’ property to link to the photo, and in this exercise, is nested within your ‘a’ element.

a href=“https…”>img src=“https…” alt=“…”/>/a>
Hope this helps!
EDIT: I have to leave out the open tags, or my code disappears

1 Like

lemme try it out and see the outcome
thanks lots

1 Like

No probs, not sure why it’s not showing the code I wrote. I’ll try and clean up my reply