Can someone help me in "Learn HTML by Building a Cat Photo App - Step 12"

Tell us what’s happening:

Hello! I’m beginner with the coding. I do not understand, why my code is not correct. Can someone please help me and tell how should I correct my code to make it work? This is the step 12 in the “Learn HTML by Building a cat Photo App”.

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

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 12

Hi there, What you did is correct. however, the problem is, you created a new sentence “link to cat pictures” and turned it into a link. the exercise asks you to the words “cat photos” into a link. Is it clear?

I apologize, I misinterpreted your answer. In line 8 you see the “link to cat pictures” phrase turned into a link. what you need to do is to turn the “cat photos” phrase in line 7 into a link in the same way. when we click on this link we specify the new site to go to with the href attribute. you used the cat photos phrase for this reference. instead the words “cat photos” should still be visible and when clicked it should go to “https://freecatphotoapp.com

Screenshot 2024-02-12 215737
This is what you should see on your preview screen. I hope I helped you this time

Thank you so much for helping me.

I tried to correct to code, but I don’t understand how to put “in our gallery” after the link. Can you still help me with that?

You don’t need to write any new words. convert the words “cat photos” already in the sentence into a link. the only new things you need to add are the “a” element and the “href” attribute to it. I can write the answer directly if you want.

Okay. Thank you for letting me know. It would be great, if you would have time to write the answer directy to me.

We didn’t give actual code to anyone, because it’s is against the rule. We provide only guide or example.
Here’s example

<p>some text <a attribute="value">main text</a> some more text</p>

@Annika1

Sorry, I did not know it was against the rules.

Thank you both very much for your help. I didn’t know it was against the rules either. Sorry about this.

1 Like