I can not seem to get this, everything looks correct to me (Step 12)

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
   <p>Click here to view more <a href='http://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.">
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15

Challenge: Step 12

Link to the challenge:

1 Like

Use " " around the href attribute (you’re using ’ ’ )

I have used both “” and ‘’ but it seems no matter which one it still marks as wrong

it states that my problem is I spelled Cat Photos wrong but I haven’t and the spacing seems correct so I’m very confused as of right now

Try switching to Chrome as a browser

I think this is the step where I learned Safari wouldn’t let me proceed - and I see another post here with a similar issue to yours, about the same step (Step 12 - Cat Photos App)

put a period dot in between the a element closing tag and the p element closing tag something like this .

Hi @baklava

I think you need to understand that white spaces are words too, so if you have extra spaces inside the p element it wont work too. Just in case:

This is text, <a>this is text inside a p element and is also a link</a>
This is another text, <img  src="workplace.jpg" alt="Workplace">the image before is also a link</a>. I hope this examples will help you to understand the anchor element syntax.

The p element is a block element (it sits in a new line, because it takes all the available space, from left to right)
and the anchor, a, element is an inline element (like a word or a white space, it sits side by side with other words and inline elements, and only takes the space that its content needs).

Happy coding! :muscle: :sunglasses: :hugs:

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