Tell us what’s happening:
After inputing the required code, it still showed error
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>
</main>
<p>View more
<a href="http://freecodecamp.org"target="_blank">Cats photos
</a>
</p>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36.
Challenge: Nest an Anchor Element within a Paragraph
okay…thanks, but I just did now and its still showing error
<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 href="http://freecodecamp.org"target="_blank">Cats photos
</a>
</p>
</main>
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
Please use the “preformatted text” tool in the editor (</>) to add backticks around text.
In your code there are two <a> elements. One links to http://freecatphotoapp.com and the second one to http://freecodecamp.org.
Step 1: You can delete the second <a> element (the one which has the link to .org) and the <p> inside which it is contained.
Step 2: You have to nest the first <a> element inside a <p> element and include the “View more” text with a space after it.
Yes, the <a> element with a link to the freecatphotoapp.com is in the instructions and it is already in your code which is good. This one has to be nested inside a <p> element with the View more text and space after it.
There is no need for the <a> element with the href to freecodecamp.org website.