Learn HTML by Building a Cat Photo App - Step 15

So I have been stuck on this one for a while and can’t seem to get past this step. Anyone that can help me out.

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
      <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/106.0.0.0 Safari/537.36

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

Link to the challenge:

It looks like this is the starting code. What have you tried? What is confusing or has you stuck?

“Turn the image into a link by surrounding it with necessary element tags. Use https://freecatphotoapp.com as the anchor’s href attribute value.”

Not really sure what to do here.

Do you know what an anchor element is?

Yes.

<a href= “https://freecatphotoapp.com” < /a>
Should I include this line?
I’m pretty clueless at this point.

step 10 - 12 should be reviewed if you are unsure.

This step is essentially the same as what you did in step 12 but instead of “cat photos” being a link, the img is the link

That syntax isn’t quite right, but its close. Every tag needs < and >

The next question is where that anchor should go

Thanks!!! I figured it out.

1 Like

A post was split to a new topic: Cat photo app step 15