HTML nesting anchor element

please help . I can’t figure out what is wrong !

  **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>
<p>
   
  view more
  <a href ="https://www.freecodecamp.org">cat photos 
  </a>
  </p>

</main>
  **Your browser information:**

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

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

The tests are telling you that you need to have only 1 <a> element in your code, what link to use and what text. It is case sensitive.

hello may be you have to refresh your browser . i test your p tag but it isworking`

Preformatted text

`

<h2>CatPhotoApp</h2>
<main>

// not nested, remove this one
<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>
// change code below only
<p>
    view more  
    <a href ="https://www.freecodecamp.org">cat photos</a>
</p>
// change code above only
</main>

You need one a element that links to https://www.freecatphotoapp.com That is nested in the p element having text of View more. Right now, the p element is nested in the a element that links to https://www.freecodecamp.org .Remove that one and put the a element links to https://www.freecatphotoapp.com in the existing p element

Delete This Part of code

Now nest this part of code in a p element like you did for the other one with the text View more

Please try not to spoil the solution. You’re basically telling her the final solution.

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