First time learner "what am I doing wrong?"

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

   **Your code so far**

<h2>CatPhotoApp</h2>
<main>

<p> View more cat photos <a target="https://www.freecatphotoapp.com">cat photos</a</p>


 <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>
   **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

Be sure and read the failing test message at the bottom. It can be very helpful telling you what is incorrect.

Taking a look at your code there are quite a few errors/deviations from what the lesson asks you to do.
<p> View more cat photos <a target="https://www.freecatphotoapp.com">cat photos</a</p>

There is a duplication of the text “cat photos”, the a element is not closed correctly and the anchor element (a) has an incorrect attribute.

Try resetting the lesson and following the instructions carefully.

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

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>

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

<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>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

I think it’s the capitol <P>, try changing that to <p>.

1 Like

Man, I’ve been sitting here for 15 minutes trying to figure out what was wrong and it was right in front of me the whole time lol. Thanks for the help

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