Is this bugged?

it says on the last paragraph I need to nest the link inside the paragraph which it is and still gives an error

full code below:

<h2>CatPhotoApp</h2>

<main>

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

  <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 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>

<p>View more <a target="_blank" href="http://freecodecamp.org"> cat photos</a>

</p>

</main>

Challenge: Nest an Anchor Element within a Paragraph

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

can you do it again sorry i hit override

Yes, your code is bugged :smiley:

Nest the existing a element within a new p element. The new paragraph should have text that says View more cat photos , where cat photos is a link, and the rest is plain text.

You are making a brand new a element when you need to use the a element that’s already there.

1 Like

yeah that what it is, it works but it says I need another p in brackets but when I add that it breaks the whole thing

<h2>CatPhotoApp</h2>

<main>

<!-- This is the original a element -->
  <a href="https://freecatphotoapp.com" target="_blank">cat photos</a>

  <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 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>

<!-- This is the extra a element that you should not have -->
<p>View more <a target="_blank" href="http://freecodecamp.org"> cat photos</a>
</p>

</main>

the lesson says ADD A NEW P ELEMENT and thats eactly what I did

nvm i got it lol thanks

I don’t know why you are yelling. Please don’t do that.

The challenge says

Nest the existing a element within a new p element. The new paragraph should have text that says View more cat photos , where cat photos is a link, and the rest is plain text.

You need to nest the existing a element inside of a new p element. This means that you need to leave the existing a element exactly as it is and put new p tags around it.

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