The p element should have view more and space after it

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

  **Your code so far**


<p><a href="" target="View more">cat photos</a></p>

<img src="" 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>
  **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:

In your p element you are missing “View more “.

Also, this is not valid:

And maybe where your confusion lies. The a element target is not where “View more” should be.

if it should not be in the a element then where???
please help a brother…

Or the better question should be how do i add the target to my p element

target is an anchor tag attribute that specifies where to open the link. The value _blank specifies to open the link in a new tab. The href is an anchor tag attribute that contains the URL address of the link:
<a href="" target="_blank"> ... </a>

Make sure to look back through the challenge to make sure you understand what the target attribute means. The directions are to add a anchor tag within a paragraph element.

It should be in the p element.

Study the example provided:

  Here's a <a target="_blank" href=""> link to</a> for you to follow.

The target attribute doesn’t go in a p element, see the other comment.

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