Nested Link issue

Tell us what’s happening:

Put in the following code where the system is asking for a link to be embedded into a paragraph:

<h2>CatPhotoApp</h2>

<main>

  <a href="https://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://freecatphotoapp.com">cat photos </a>.     

  </p>

</main>

Your code so far


<h2>CatPhotoApp</h2>
<main>

<a href="https://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://freecatphotoapp.com">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/88.0.4324.146 Safari/537.36.

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

Appears to be correct but the system will not let me past it.

The tests are giving confusing output in this case. This is the test case you should look at:

You should have an a element that links to " https://freecatphotoapp.com ".

I do. Everything appears to be correct and it runs as it should in an html doc but your system is unhappy about something.

I know html but was working through the entire course. Now I am stuck before I ever got to Javascript.

Randy

image001.jpg

The protocol you’re using http is not the same as the protocol you’re tasked with using https

1 Like

Plus you created a new element rather than nesting the existing one.

1 Like

Thank you.

image001.jpg

ici tu doit juste déplacer l’élément qu’on te demande aillant une balise d’entrer et de sortie pour le mettre dans le nouveau p élément donc dans un nouveau paragraphe a l’exemple des autre p élément