Nest an Anchor Element within a Paragraph 1

Nest an Anchor Element within a Paragraph 1
0

#1

Seems to be a problem with the app, because I swear I have done this?

image

Code I enter (multiple variations of this"
already tried logging out resetting cache and code etc


<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>
</main>
<p>View more
  
  <a href="http://www.catphotoapp.com">cat photos</a>
</p>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 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/


#2

The closing main tag should be at the bottom of your code.

EDIT: This is wrong. Check my response below.


#3

image

It told me to do that I thought

Ok I changed it and still one error?


#4

Apparently I was wrong. What seems to be the problem is that you’ve got two anchor tags (you only need the one nested inside the paragraph). Delete the one that you don’t need.


#5

Hi @Borgus-Sama,

This is the solution:

<h2>CatPhotoApp</h2>
<main>
 <p> 
  <a href="http://freecatphotoapp.com" target="_blank">cat photos</a>
  View more 
  </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 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>

Just remove code from your challenge and copy that code to your challenge and hope this will solve your problem.

Regards,
Ali Mosaad