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

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

#1

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>

#2

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


#3

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.


#4

What do the failing tests say?


#5

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 "


#6

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.


#7

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

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