help me with this code please

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

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>

<a href="https://www.freecatphotoapp.com" target="_blank">cat photos</a>

<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" 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>
</main>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.


It doesn’t look like your anchor element is inside of an opening and closing p tag for a paragraph element.

THE TUTORIAL ASKS US TO:
Nest the existing a element within a new p element. Do not create a new anchor tag. The new paragraph should have text that says View more cat photos, where cat photos is a link, and the rest is plain text.


FIRST: Lets take a look at the two elements they are talking about here.


An <a href> and a <p>.

<a href> An anchor link, allows you to create a link using text.

<p> Represents a text Paragraph.


Nesting means to put one element inside another element.

In this case, they are asking you to put an <a href> element inside the <p> element.


THE LINK THEY ASK US TO MODIFY:
image
The structure is: <p> <a href> </a> </p>


What this looks like :

This text contains a link

<p> This text contains a <a href="https://www.cat-photo.com" target="_blank">link</a></p>

View more photos of some cats

<p> View more <a href="https://www.cat-photo.com" target="_blank">photos of some cats</a></p>

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