Nesting a element in p

<main>

<p> View more

<a target="_blank" href="freecodecamp.org"</a>cat photos

</p>

I dont know what is wrong with this what this but Im getting :
/ running tests Your

a

element should be nested within your new

p

element. // tests completed

im totaly lost. I watched video couple of times and I still dont see what Im doing wrong.
I thought this was introductory level but explanation to those lessens are really hard to understand .

Here’s an example of a p element nested inside a div element:

<div>
  <p>I'm nested inside a div!</p>
</div>

You need to nest the a element inside a p element.

1 Like

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.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.

markdown_Forums

  • Your opening a tag doesn’t have a >.
  • The words “cat photos” are not inside the a element.
  • I’m pretty sure that your url is wrong.
1 Like

Thanks Colin and Ariel. I messed up URL address.