Nest an Anchor Element within a Paragraph please

Tell us what’s happening:= Your a element should be nested within your new p element. i cant solve the task please help

Your code so far



<h2>CatPhotoApp</h2>
<main>
  
  <a href="http://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 herf="http://freecodecamp.org"> cat photos </a>
</p>
</main>

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/nest-an-anchor-element-within-a-paragraph/

Just need to check your spelling in the anchor tag :slight_smile:

oho thanks i corrected it but still it showing the same Your a element should be nested within your new p element.

You have a few problems:

  1. You have two anchor elements
  2. The link you added is wrong (in the paragraph)
  3. You paragraph text is wrong.

Looking at your code, I think you get the idea of links and paragraphs. I suggest you reset your code (this is the simplest way) and then work though the instructions again noting spelling and spaces. The only instruction you need to follow is:

Now nest your existing a element within a new p element (just after the existing main element). The new paragraph should have text that says “View more cat photos”, where “cat photos” is a link, and the rest of the text is plain text.

You need to ignore the example they have given, which is (I think), where your problem has come from. If you get stuck, feel free to paste you updated code and I’ll tell you if you’ve gone wrong.

Hope this helps :slight_smile:

thanks i solved it i take it in whole wrong way by seeing example thanks for your help:grinning: