Nesting a elememnt . what missing closing p element?

Tell us what’s happening:

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>
<p>view more 
<a href="http://freecatphotoapp.com" target="_blank">cat photos</a>
<p/>
<img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">

<p>Kitty ipsum dolor sit amet, shed everywhere shed <a href= "https://freecatphotoapp.com">.everywhere<a/> 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>
</main>

  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0.

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

Should be

</p>
2 Likes

do you see why it says you should only have one a element?

<a href="http://freecatphotoapp.com" target="_blank">cat photos</a>

  </p>

  <img src="https://bit.ly/fcc-relaxing-cat">

  

  <p>Kitty ipsum dolor sit amet, shed everywhere shed <a href= "https://freecatphotoapp.com">.everywhere</a> 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>

</main>

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 (’).

You have two anchor tags

Here is one

and here is the second one

That second one shouldn’t be there

1 Like

Tell us what’s happening:

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>
<p>View more 

<a href="http://freecatphotoapp.com" target="_blank">cat photos</a>
</p>
<img src="https://bit.ly/fcc-relaxing-cat">

<p>Kitty ipsum dolor sit amet, shed <a href= "https://freecatphotoapp.com">.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>
</main>

  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0.

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

also cant figure out whuy it says "you should only have one a element

because you have two <a> tags in your code and you only need one. Remove <a href= "https://freecatphotoapp.com">.everywhere</a> from your <p> tag

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