<h2>CatPhotoApp</h2>
<main>
<a href="http://freecatphotoapp.com">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 target="_blank" href="http://freecodecamp.org"</a>cat photos.</p>
Your browser information:
User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0.
Challenge: Nest an Anchor Element within a Paragraph
your last line anchor tag is not properly closed and your text for the link is placed outside anchor tag. <p> View more <a href="http://freecodecamp.org" target="_blank">cat photos.</a></p>
Hope this helps
but you need to delete the last line and follow carefully what you are asked to do, using the existing anchor element:
Now nest the 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 mean that it says after “main element”, yes, that’s not correct
can you report it as a bug?
Thank you for helping make FCC better. Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.
<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 target="_blank" href="http://freecodecamp.org"</a>cat photos.</p>
Your browser information:
User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0.
Challenge: Nest an Anchor Element within a Paragraph
His answer is correct toybits102. The instructions say to modify the existing a element. Not create a new one.
Delete the last line that you added and modify the existing one
Now nest the 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.