Task 12 is giving me a headache

Tell us what’s happening:

Everytime I submit its wrong, I cant make the Text “cat photos” a link with out it being wrong and even when removed the extra closing tags its all wrong how do I make these specific words a link text within a sentence, and why do we do it that way? I like to understand I am just so lost right now.

  **Your code so far**
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more
    <a href="https://freecatphotoapp.com">cat photos
    <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 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0

Challenge: Step 12

Link to the challenge:

Hi @jaygalvan117 ,

Your anchor element is missing a closing tag :

Everytime i put the it says this : Test

Sorry, your code does not pass. Hang in there.


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

everytime i place the after the cat photos and before the

it always says that so when i remove either the

or the its wrong


Sorry, your code does not pass. Don’t give up.


After nesting the anchor (a) element, the only p element content visible in the browser should be Click here to view more cat photos. Double check the text, spacing, or punctuation of both the p and nested anchor element.

Can you please share your updated code.

1 Like

I figured it out, why when I was formatting the code, does the

have to be on a seperate line completely different from the other anchor closing tags?

Updated code is all good now

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