My code looks right, but there is always a problem. If I try to fix it, it just messes something else up. Can you describe what I am doing and how to fix it?

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>

<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>
<p>View more <a target="blank" href="link to www.freecodecamp.org"> cat 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/92.0.4515.107 Safari/537.36

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

It is about the last line of code

hi, try adding “view more” text between p and a element. Like this…

<p> view more <a

hope this helps!

Hi!
Try to

  • remove "link to "from the href of the last a element
  • add an underscore (_) before blank
    so the last line looks like:
<p>View more <a target="_blank" href="www.freecodecamp.org"> cat photos </a></p>

Hi @char.bookie818 !

Welcome to the forum!

Here are the first part of the instructions again.
Nest the existing a element within a new p element.

You were not supposed to create a new a element.
You can delete this last line at the bottom.

Wrap you p tags around the a element they already gave you here.

<main>

<a href="https://www.freecatphotoapp.com" target="_blank">cat photos</a>

Hope that helps!

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