Learn by building a cat photo app - Step 12 - not working

I do not understand why it does not recognize the link as “working”.

Step 12

Turn the words cat photos located inside p element into a link using the same value for the href attribute as the link below the p element. The p element should show the same text in the browser, but the words cat photos should now be a link. Make sure to remove the a element with the text cat photos on the line below the p element.

My code:

Click here to view more cat photos .

A cute orange cat lying on its back.

My code (as it was not pasted in the post (for some reason)):

      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more <a href="https://freecatphotoapp.com"> cat photos </a> . </p>
      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">

In future please link to the lesson, it makes it faster to check your code.

I’ve noticed there’s some extra spacing inside the link each side of the two words and where the full stop is. I’d try removing that as the lessons are very particular about word spacing.


Thanks, but I’ve not been able to identify the extra spacing.

It’s in this bit

> cat photos </a> . </p>

There’s an extra space before and after the words ‘cat photos’ and after and before the full stop. When I remove them your code passes.

I have code as


Click here to view morecat photos


No spaces believe “nest” is correct, however it still says incorrect

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