Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

<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>
      <a href="https://freecatphotoapp.com"><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:

1 Like

:balloon: Hi, welcome to the forum!
We see you have posted some code but did you have a question?

Yes. i’ve been trying different ways but i don’t know where i should insert the imagine link:
<a href=“https://freecatphotoapp.com
I’ve tried on the left of <img but with no luck. i"m blank

1 Like

Anchor elements have 3 parts.

The opening tag
The text or element in the middle
The closing tag

Make sure you have written correct syntax for the tags.

For eg: here is a sample anchor element:

<a href="https://freecatphotoapp.com">cat photos</a>

Okay thanks. I’ve tried that without luck. should it be before the img? Or where? I’m perplexed.

It should be around the image. (Opening tag before, closing tag after)

Let me see you latest code if you are done trying things.

Here is that example anchor tag again.

Look at it carefully.

It has an opening tag (your code is missing the > of this tag)
It has some stuff in the middle (that should be the img in your case)
It has a closing tag after (compare that with where your closing tag is now)

1 Like

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