Nesting <a> statement in <p> statement not passing test

If i understand this challenge it’s simply to nest an<a> statement inside of a paragraph, <p>. I think I’ve done this but the test is not passing, any tips? Here is the code:

 <p>
View more <a target="_blank" href="http://freecodecamp.org">cat photos</a> for you to follow. more text to make sure it's nested.
</p>

well the code example is in html so it got compiled, but hopefully you can decipher.

I’ve edited your post for readability. When you enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

markdown_Forums

What do the failing tests say?

Thanks for the backtick information! It just needs to pass “Your a element should be nested within your new p element.” I’m pretty sure it is, but it’s not passing that test so I’m wondering if I’m confused on nesting or if the test might not be functioning properly.

There isn’t a stack trace or debug besides :
"// running test
Your a element should be nested within your new p element.
// tests completed "

I think your link and paragraph have the wrong text in them.
The text should say “View more cat photos”.
Only “cat photos” should be a link.

1 Like

This is definitely a bug needs to be fixed in freeCodeCamp.

Replace the url to “http://freecatphotoapp.com”, test would pass

1 Like