Stuck nesting <a> within <p>

Dear community,

I can’t see where to fix this issue to proceed to the next test?

Your code so far


<h2>CatPhotoApp</h2>
<p> View more <a href="http://www.freecatphotoapp.com">cat photos</a></p>


Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

Hi @Gavinjd !

Welcome to the forum!

It would help to see the FULL code which should be a total of 11 lines.

But the error message I am getting is that your url is wrong.
The a element should link to " https://www.freecatphotoapp.com ".

Thanks Jessica,

Lol, I only have three lines of code…

<h2>CatPhotoApp</h2>
<p> View more <a href="http://www.freecatphotoapp.com">cat photos</a></p>
<h2>CatPhotoApp</h2>
<p> View more <a href="https://www.freecatphotoapp.com ">cat photos</a></p>

When you post to the forum, you should always post the FULL code.
Not just your answer.

This would be the FULL code.

<h2>CatPhotoApp</h2>
<main>
<!--YOUR ANSWER GOES HERE-->
  <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>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>

That way we can test the full answer that your are submitting and let you know where the errors are.

A lot of times people will change things they are not supposed to in the starter code and it just makes it easier to identify issues if you give us all of the information up front.

Something to keep in mind for future posts :grinning:

Thanks Jessica,

I’m confused? I did change things I wasn’t supposed to. If I reset the code, do I go back to the beginning again?

I think you can move onto the next lesson if you passed the challenge.

For future posts, you want to share the full code.

After being on the forum for a year, I have seen plenty of situations where people will share part of the code and there will be this long back and forth trying to figure out the problem.
Then we realize they changed something in another part of the code they weren’t supposed to.

I just makes life easier for everyone involved if you share all of the information up front. :grinning:

1 Like

ok, I see what you mean.

It’s sorted now.

Thanks Jessica

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