STEP 12 getting error creating cat photo link

Tell us what’s happening:
I believe the code is correct, it tells me that i have a typo or left out cat photos? looks correct in the output, I have read thru these forums for 2 days now, Describe your issue in detail here.

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p> Click here to view more <a href="https://freecatphotosapp.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.">
  </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/103.0.5060.66 Safari/537.36

Challenge: Step 12

Link to the challenge:

Hello.
You deleted the dot. It was after the text cat photos.
Now it should be after a element’s closing tag.
Such things are important be careful.

Thanks for the reply, but still get error below.

" Hint
The link’s text should be cat photos. You have either omitted the text or have a typo.

remove the spaces in the anchor element, it must be exactly cat photos

Thanks for the suggestions but fortunately I found that the error was because I was using BRAVE browser. As soon as I switched to Chrome it worked. Is this normal?

I don’t know much about browser-related stuff, but just today some other camper had similar situation with Safari(correct code, but tests didn’t passed), and it was solved by him when he switched to Chrome.

Actually, I don’t think the space in the link before “cat photos” matters any more as I was just able to get it to pass with about 10 spaces in front of “cat photos” using Firefox, Chrome, and Brave. Perhaps the test has been updated recently? But in general, you should not add extra spaces where they are not needed as many of the tests will fail if they are there.

I did notice in your original HTML above that you had the URL for the link wrong though. You have it as https://freecatphotosapp.com/ when it should be https://freecatphotoapp.com. Perhaps this is the change that caused you to pass?

Thanks for that catch. I made the change and have it working in both browsers now. Must have been it.

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