It say's You should only have one a element. Your a element should be nested within your new p element. how can i fixt it and where should i put em :) thank you

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>

<a href="https://www.freecatphotoapp.com" target="_blank">cat photos</a>
<p>view more <a href="www.freecodecamp.org">link to freecodecamp.org</a></p>

<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" 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>
</main>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.


You have two a elements, so that’s not quite right.

Also, you wrapped the wrong a element in the paragraph tags.

The exercise is to put the existing anchor element nested inside of a p element.

Right now, you have 2 a elements, so that’s not quite right. Get rid of the first one.

The new paragraph should have text that says View more cat photos , where cat photos is a link, and the rest is plain text. So you should double check whether that’s spelled correctly (with an uppercase letter at View) and what your anchor element actually says. Right now it says “link to freecodecamp”…

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