Omfg lit' crying after hours of figuring out what i am doing wrong. Pls help me out by giving me answer

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

  **Your code so far**


<a href="" target="_blank">cat photos</a>

<img src="" alt="A cute orange cat lying on its back.">
<p>View more 
<a href="cat photos">cat photos</a> 
<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/91.0.4472.101 Safari/537.36

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

1 Like

you task was to have an anchor tag wrapped around by an paragraph tag so all you need to do is make sure that <p> tag has an <a> tag inside :slight_smile:

1 Like

First: Calm down, take a deep breath.
Second: On the left, below the description you are seeing what is tested (in later sections it will include expected outputs).

You are failing two tests, both for pretty much the same reason: you created a new a-tag and wrapped that in p-tags containing the phrase "View more ".
However you were supposed to wrap these p-tags around the already provided a-tag, which in you code you can be spot by being surrounded by empty lines.

Resett your code, place the p-tags with the text at the correct location and it should pass.

1 Like

my <p> tag does have <a> tag inside. What’s wrong in my code :frowning:

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

Jagaya already gave you the answer.

Nest the existing a element within a new p element.

You should only have one a element.


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