Nest an Anchor Element within a Paragraph Cat Photo app

Tell us what’s happening:
Describe your issue in detail here.
I can’t get 2 things right and I tried over 100 times but it still says,"You should create a new p element. There should be at least 3 total p tags in your HTML code.

Your a element should be nested within your new p element."

  **Your code so far**

CatPhotoApp

Cat photos

A cute orange cat lying on its back. View more

Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

View more

Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.

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

2 Likes

I don’t get it. Can you give an example?

1 Like

here is a line of “preformatted text”:

<img src="cat.jpg">

I wrote it typing 3 backtiks at start and 3 at the end.
the video above isn’t clear?

1 Like

So you would do something like this < p > View more < a href = “” target="_blank">cat photos< /a >< /p >

Href has been left blank on purpose as you can copy and paste into your code on the course.

2 Likes

something like this:

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

I did follow the steps and I got somewhere, but now it is a different error. It says," Each of your p elements should have a closing tag."My code is,"

CatPhotoApp

Cat photos

A cute orange cat lying on its back. View more

Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

View more

Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.

View more cat photos

now, but I still don't know what Your `a` element should be nested within your new `p` element.means

please check this post again.
I can’t read your code if you don’t post it correctly…

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