You should only have one a element. and Your a element should be nested within your new p element

Tell us what’s happening:
Describe your issue in detail here.
I’m getting these errors and cannot resolve them. You should only have one a element. and Your a element should be nested within your new p element.

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>

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

<img src="https://www.bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">
<p>
 View more 
<a Target="_blanket" href="http://freecatphotoapp.com/">cat photos</a>
</p>
<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/91.0.4472.114 Safari/537.36

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

A really important part of being a developer is being able to find errors in your code and being able to correct them.

the area right beneath the section where you write your code shows you if you have any errors in your code. right now this is what it looks like if you run your code.

Learn-Basic-HTML-and-HTML5-Nest-an-Anchor-Element-within-a-Paragraph-freeCodeCamp-org

The first error is you should remove the first a element so doo that. just take the first anchor element and remove it.

The next error is that your remaining a tag should be nested within your new p element.

This challenge asked you to create a new p element which is why it says new p. Now cut your a tag and paste it right between the opening and closing p tags of the new paragraph that you created so it looks something like.

 <p>
Purr jump eat the grass rip the couch scratched sunbathe, shed 
everywhere rip the couch sleep in the sink fluffy fur catnip scratched.
View More
   <a href="https://www.freecatphotoapp.com" target="_blank">cat photos</a>
</p>

Hope this helped! :slight_smile:

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