Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
Describe your issue in detail here.
First day trying to learn how to code and stuck on what part I have wrong. Thanks!

Turn the image into a link by surrounding it with necessary element tags. Use https://freecatphotoapp.com as the anchor’s href attribute value.
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="www.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>
    </main>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15

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

Link to the challenge:

Looks okay to me. Try copying the code and refreshing the step. Then put the code back and try.

Maybe get rid of the random period or moving it besides “cat photos” if it’s supposed to be there.

1 Like

All figured out thanks!

Was that the problem?

what was your solution to problem 15, my code is essentially the same but it prompts me that i should only have one opening anchor , when i copy and paste my code to the box it just comes up with the code as per preview. very new to this so any help would be apreciated thankyou

2 Likes

If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

1 Like

Hey! I can help you out. Can you post your code?

1 Like

Thankyou but i solved the issue for problem 15, although I’m unsure on how to copy code and paste it so it remains raw

1 Like

Ooh ok cool. Well done.

In regards to copying and pasting code, you can literally just select it all and copy it and past it in a form post.

But surround it with ``` before and after and it will like like this:

<!DOCTYPEhtml>
<html lang=“en”>

Etc etc

1 Like

Hi Mark, just a mod tip for you.
Always check who is asking a question before you answer. If the person asking is not the original poster, just tell the person to make their own topic. Because right now we are all hijacking this thread from the OP. (They get notified every time someone posts to their thread)

Aah. Good point. Will do.

Could someone explain to me why

could someone explain to me why there is a > after the “www.freecatphotoapp.com

1 Like

Every single HTML tag must have < and >

1 Like

@JeremyLT speaks truth.

1 Like

I was previously stuck here. your post helped. Thank you