Step 12 should only have 1 a anchor

I am really struggling with this one I dont know if I am overthinking this but it says it should only contain one a anchor. I tried reading the forums and it looks good to me.

    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more <a href=""> cat photos</a></p>
    <a href="">cat photos</a>
    <img src="" alt="A cute orange cat lying on its back.">
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Step 12

Link to the challenge:

From the instructions:

“Make sure to remove the a element with the text cat photos on the line below the p element.”

The a element below the p element still seems to be there.

so then I have to remove that second line of code? im sorry if these are dumb questions im completely new to this or by below the p element is it referencing the

on the first line?

Yes, exactly. You only want one a element on the page and that is the one you created in the p element. Just delete the one below the p element and you will pass.

  <p>Click here to view more <a href=""cat photos</a></p>

so this is what I got but im still not passing for that same reason

Why did you change what you already had? You had it correct. You just needed to remove the link below the p element.

okay so I think im finally understanding the problem but what do i replace the a element with on the p line? or am I just getting more confused? I really appreciate your patience and time in helping me figure this out

Nothing. You want the words “cat photos” to be a link in the p element. You had it correct. Your HTML at the very top is right. You just need to remove the extra link below the p element.

Im not understanding what you mean by remove the extra link ive tried deleting the entire thing and I get the same answer I havent been this frustrated since school I know the answer is simple but it just isnt making sense to me

Look again at your initial HTML at the top of this thread:

I’m assuming you see the a element on the second line below the p element. Literally, use your backspace key on the keyboard and delete that second line. Then there will only be one link in the HTML, the one you added inside the p element.

I tried that at least 10 times and it didnt work so I deleted both lines entirely then came and copied the one from my original post instead of just deleting the second part and it worked I have never been so confused in my life but it worked

Chances are you had a small typo somewhere that you weren’t seeing and when you copy/pasted again it got rid of the typo.

1 Like

I am so happy to finally be done with this step im just scared because thats not even halfway through the beginner curriculum thank you for your time I appreciate all the advice and time you took out of your day to help

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