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>
     <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."> </a></p>
    </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:

I cant seem to get it to work. i’ve tried placing the (a) tag in front and back with the link in between I also tried placing it behind the link and some other options but nothing seems to be working

Follow the rule:
image
You don’t need to wrap your ‘img’ element in a new ‘p’ element. Delete ‘p’ tags.

1 Like

Thanks a lot, but, I just did and its still not working
I don’t know what I’m doing wrong

Please show us your latest code.

i removed both the closing and opening p tags

If you would like more help please post your code.

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

i tried but its asking me to create a totally new post im still not use to asking questions on this forum so i dont really know my way around it
so should i create a new post?

No you should just use your mouse to copy the code to your next reply here.

oh ok thanks
just hold on a sec

1 Like

<a href=“https://freecatphotoapp.comA cute orange cat lying on its back.
here…

You should read the post I made earlier about how to post code on the forum.

You should also fix this line


<a href="https://freecatphotoapp.com" 

It is missing the >

thank you so much it worked

1 Like