Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:

Describe your issue in detail here.

My code on Step 12 is not working . What could be the problem.

Below is my code:

See more cat photos in our gallery. cat photos

Please assist.

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

<!-- 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

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

Hello! Welcome to the forum.
Next time you create a post remember to describe your issue.

So you have the text ‘See more cat photos in our gallery.’ right. So what you are supposed to do is to make the text ‘cat photos’ a link. You have done that correctly, but you have added an additional text.
So reset your code. Then in the p element, where the text ‘cat photos’ is, add an opening a element tag with your href attribute and value before the the word ‘cat’ . Then add the closing tag after the word ‘photos’

Do not add any additional text to your code. All that you need to add is your a element with your href attribute.

Example: <p>I think <a href="https://www.freecodecamp.org">freeCodeCamp</a> is great.</p>

Much appreciated. After the closing I put in our gallery then another closing tag of p element. Then boom, it worked.

1 Like

Happy to help! Happy coding!

Ok.
Let the “cat photo” be wraped in anchor tag. You should also use the href as you did in the previous task.

Enjoi.

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