Nesting an Anchor Element within a Paragraph Test Confusion

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

<p> View More
<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 <a href="">everywhere </a>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>

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.

The problem is that the tests says I have to have only one, <a … element. My second problem is why does it say that the a element should have the link to “” When I already wrote/typed the link with the <a href= anchor

You are receiving that message because the code you posted above has two anchor elements in it. There should only be one. You were supposed to nest the existing anchor element within a new paragraph. You did that, but you also added an anchor element in the p element that starts with “Kitty ipsum dolor sit…”. Remove that anchor element and you will pass the tests.


remove the a element from the kitty ipsum text

Welcome there,

I’ve changed your thread title to describe your problem more clearly. Descriptive titles, such as “Why does my function return undefined?”, are more likely to elicit helpful responses than generic titles, such as “Help please”, or really long titles which should go in the body of your post.

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