I can't the solution to this problem

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>
<p>View more <a href=" https://www.freecatphotoapp.com"target="_blank">cat photos</a></p>
</main
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 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.


You have two anchor elements. That can’t be right.

Hello @ogekings007,

It doesn’t pass because you created another anchor. You should use the one who is at the top of the code:

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

This link should be nested into p tags with a text before the link: View more cat photos

Make sure to close the <main> tag properly. It will work

I have closed the tag properly and it didn’t work. What next can i do?

What’s your updated code? Did you remove the extra element?

Hello LucLH, I used this code
<p> View more <a href="https://freecatphotos.com">cat photos</a></p> and yet i’m still having issues with it. What should i do next to make it work?

You need to share your entire code. Did you get rid of the extra anchor element yet?

This is my updated code . Please take a look at this picture

That’s the code that i used .

<p> View more <a href="https://freecatphotos.com">cat photos</a></p>

Please post actual code instead of pictures.

It is hard to read pictures, but it looks like you still have two anchor elements. The failing test says that you must have exactly one anchor element.

okay . This is the code
<p> View more <a href="https://freecatphotos.com">cat photos</a></p>

I only used and inside of the paragraph .

That still is not your entire code. Please copy absolutely everything, all 12 lines, into a forum post.

okay.

<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>
  <p> View more <a href="https://freecatphotos.com">cat photos</a></p>
</main>

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

You have two anchor elements:

First:

Second:


You must have ONLY ONE anchor element.

1 Like

Hi @ogekings007,

I already explained you what is the issue. You have two anchors into your code, but the exercice is to use the one already there, not to create another one, The one you did is good, just need to do the same without creating another anchor:

<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.">

Hope you understand what I mean :wink:

1 Like

okay . let me edit it and try it out

Thanks alot . I have passed it :smile:

1 Like

Thanks alot . I have passed it

2 Likes