Nest an Anchor Element within a Paragraph2

Hi, for some reason I can’t seem to get past this part.
When I run the tests it says: “You should only have one a element. The a element should link to”.
Is there a mistake in the code I’m not seeing?

This is my whole code so far:

<p>View more <a href="" target="_blank">cat photos</a></p>
<a href="" target="_blank">cat photos</a>

<img src="" alt="A cute orange cat lying on its back.">

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

The specific code I seem to have a problem with is this:

<p>View more <a href="" target="_blank">cat photos</a></p>

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

The failing test says:

You should only have one a element.

I see two a elements. Two is more than one. :wink:

When I remove the second one, your code passes for me.

You’re right! I could’ve sworn the extra line wasn’t there, I somehow looked over it. Thank you Kevin :grinning:

1 Like

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