Struggling to nest 'a' element within 'p' - please help

Hey guys, I’m new here. I’m doing FCC and learning HTML. I can’t seem to get the code right. Here’s the task:

Describe your issue in detail here.
Nest the existing a element within a new p element. The new paragraph should have text that says View more cat photos , where cat photos is a link, and the rest is plain text.

Here’s the code I’ve put in:


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

  <p>View more <a href= ""target="_blank">cat photos</a></p>
  <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>

What am I doing wrong? The code above never passes the tests I run even though it looks right to me. Would appreciate some help. Thanks in advance :pray: :slightly_smiling_face:

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

Hi @codeprincess !

Welcome to the forum!

I have edited your post to include the challenge.
In the future, please use the ask for help button which formats your code and provides the challenge link.

The issue is with the anchor tag.
The instructions say to use the existing anchor tag.
You are not supposed to move it.

I would reset the lesson and only wrap the p tags around it.
No need to touch any of the anchor tag.

Hope that helps!

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