Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:
i am failing to understand tis hint
Hint*
The link’s text should be cat photos . You have either omitted the text or have a typo.

Your code so far

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

<!-- User Editable Region -->

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

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

Link to the challenge:

So, first you need to get rid the of the closing anchor tag here:

<p></a>

That should not be there. As for the error " The link’s text should be cat photos . You have either omitted the text or have a typo."

What this is saying is that the link should only surround the words “cat photos” in the sentence. Here is an example

This is some text and it has a <a href="#">anchor tag</a> notice how the anchor tag is only around the words “anchor tag”? You need to do the same but for the words it tells you in the challenge

I am most likely dense or sth., could you kindly give me another example

In the challenge you only want to put the anchor around the words “cat photos”. So here is the sentence the challenge gives you

“ See more cat photos in our gallery.”

Because you want to only wrap the words cat photos you would start your anchor tag before cat. Here is the example:

See more <a href=“#”> cat

You see “cat” is now inside of this anchor tag or link. Now the closing anchor tag needs to come after “photos”

Im not going to give the full solution. That is still for you to work out, but this is a pretty big hint. Even after closing the anchor tag you need to make sure that you still have the rest of the sentence after that.

It’s not too complicated, look again

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