Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:

Hey guys, I’m new to HTML and I am stuck on problem 12. The objective is to turn the word ‘cat photos’ into a clickable link, which I have done. However, my issue lies with the href. It says the href value should be https://freecatphotoapp.com and that I’ve either omitted it, or have a typo. But I’m not seeing that?

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->

<!-- User Editable Region -->

      <p>See more <a cat photos</a> <a
      href = "https://freecatphotoapp.com">cat photos</a> in our gallery </p>

<!-- User Editable Region -->

      <a href="https://freecatphotoapp.com">link to cat pictures</a>
      <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/128.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 12

This part of your code does create a link but the rest of the code is malformed.

Please click the rest button to restore the code for this step and then try to add just the new anchor tags without modifying anything else.

Also make sure that the new anchor tag is all in one line not split like you did before

I don’t think i’m understanding correctly. So I’ve done as you stated. I reset the code and I added the anchors so it looks like this:
<p>See more <a cat photos</a> in our gallery.</p>

then I added the href

<p>See more <a cat photos</a> in our gallery.</p> <a href= "https://freecatphotoapp.com"></a>' and it’s still showing the same message. I made sure not to split anything either this time around. I even went ahead and tried changing the location of the href to be inside the p element.

thanks for trying again and being so clear in explaining your steps.
It looks like the problem is you don’t know how to make a valid anchor tag.

Please read this post to see if that helps you out further and let me know:

1 Like

Thank you so much! this was very helpful. I was able to see what I was doing wrong and I managed to pass it. Thank you so much for helping me!

2 Likes

you are very welcome!