How can do "text view more in html"

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

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>



<img src="https://www.bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">

<p target="_blank">Kitty ipsum dolor sit amet, shed everywhere  <a href="https://www.freecatphotoapp.com" target="_blank">cat photos</a>shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.
<p target="_blank">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>
</main>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36 Edg/91.0.864.48

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

The failing test says:

Your p element should have the text View more (with a space after it)

This is the element in question:

<p target="_blank">Kitty ipsum dolor sit amet, shed everywhere  <a href="https://www.freecatphotoapp.com" target="_blank">cat photos</a>shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

The closing </p> is for some reason moved to the end of the other p element, but I don’t think that causes the test to fail. The test fails because it expects"View more " to precede the link, and instead you have, “Kitty ipsum dolor sit amet, shed everywhere ”.

When I fix that, your code passes for me.

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