Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:

the program keeps saying my code does not pass because my href value is not correct, that its either i omitted the href value or have a typo . But i cant find any errors in my code

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 href="https://freecat photoapp.com"> cat photos</a> in our gallery.</p>
      <a href="https://freecatphotoapp.com">link to cat pictures</a>

<!-- User Editable Region -->

      <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/121.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 12

Welcome to the fCC forum!
You have space in your link, try removing that.
cat photo
And you have a space before the text ‘cat photos’ . You need to remove it as well.

hey there, i tried to it still wont run

Can you paste your updated code here?

1 Like

CatPhotoApp

Cat Photos

  <p>See more <a href="https://freecat photoapp.com">catphotos </a>in our gallery.</p>
  <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>

Okay, reset your code. Start fresh again.
Then add your a element with your href set to “https://freecat photoapp.com”. Don’t add any spaces in that.
Your text ‘cat photos’ shouldn’t have any spaces other than the one inbetween.
Make sure that you have a space before the a element opening tag, and one after the closing tag of the a element.
If it’s still wrong paste your code here again, so that we can assist.

i managed , thank you so much for your help

1 Like