Html cat// step 12

my code

<p>Click here to view more cat photos.</p>

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


Sorry, your code does not pass. Keep trying.

Your anchor ( a ) element should be nested within the p element. what does this mean?

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 (’).

1 Like

With html you can put one element inside each other, like this.

<p><a href=““>A link</a></p>

Nesting refers to this way of putting elements inside each other. This is what the instructions are asking you do to here.

1 Like

When it says your (a) element should be nested within your p element it means the <a href="url"></a> should be within the opening <p> and closing </p> tags.


I think i am starting to get it. i did some changes but still not working.

Click here to view more cat photos

And the hint says:
After nesting the anchor ( a ) element, the only p element content visible in the browser should be Click here to view more cat photos. Double check the text, spacing, or punctuation of both the p and nested anchor element.

Can you post your code using three backticks (```) so we can assist you further.

Thanks this helped me

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