running tests You should only have one a element. Your a element should be nested within your new p element. // tests completed

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://www.bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">
<p>view more cat photos
<a href=" ... " target="...">link to freecodecamp.org</a> cat photos</p>
<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/91.0.4472.77 Safari/537.36

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

@teedrums2468
This test clearly explains what needs to be done.

Nest the anchor <a> element inside the paragraph <p> element and View more with a space after it.

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

Any doubt , feel free.

Hi @teedrums2468 !

Welcome to the forum!

I would suggest resetting the lesson.
Here are the first part of the instructions
Nest the existing a element within a new p element.

This is the existing a element.

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

Do not create a new a element.

Add the p tags around the a element.

Here is the last part of the instructions
The new paragraph should have text that says View more cat photos , where cat photos is a link, and the rest is plain text.

Add the view more text here

 <p> ADD TEXT HERE<a 

Hope that helps!

After copying the code pattern you sent

i still have the first two steps wrong after doing that

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

Tell us what’s happening:
after coding to this level, I still have two first step wrong. its on the 7th line

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>

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

<img src="https://www.bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."> 
<p><a href="https://www.freecatphotoapp.com" target="_blank">cat photos</a>View more </p>

<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/91.0.4472.101 Safari/537.36

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

You still have two anchor elements.

Here is one

and here is the other one

The test is only looking for one anchor tag. Not two.

Also look very carefully at where I placed the view more text.

I don’t see that in your answer here

The view more text should be after the opening p tag and before the opening a tag.

Hope that makes more sense!

Tell us what’s happening:
Describe your issue in detail here. I feel I am doing the right thing, but I just keep missing two steps

  • You should only have one a element.
  • Your a element should be nested within your new p element.

those above element are what i am not getting right. i have checked the hint, i have gone over the instructions countless time. its realy giving me hard time

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>

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

<img src="https://www.bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">
<p>view more</p>
<p><a href=" ... " target="...">link to freecodecamp.org</a></p>
<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/91.0.4472.106 Safari/537.36

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

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://www.bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">
<p> <a href=" ... " target="...">link to freecodecamp.com</a> view more</p>


<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/91.0.4472.101 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 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.

This is probably wrong.

the problem i am having is that, i keep getting two steps wrong. Which are;
You should only have one a element. And
Your a element should be nested within your new p element.

those are the two steps that i am having problems with

i have done it this way but shit not working out well

@stodolni, it is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

You can post solutions that invite discussion (like asking how the solution works, or asking about certain parts of the solution). But please don’t just post your solution for the sake of sharing it.
If you post a full passing solution to a challenge and have questions about it, please surround it with [spoiler] and [/spoiler] tags on the line above and below your solution code.

1 Like

Here is your code showing two a elements. The first one is not nested in a p element.
The one that’s nested in a p element is not syntactically correct.

Maybe reset the lesson and start again following the instructions.

If you’re still having an issue we’ll need to see your new code.
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 (').

Let’s just focus on one problem at a time.

You have two a elements.

Here is one

and here is the second one

You are only supposed to have one. But you have two.
Reset the lesson again and do not create any new anchor tags.

When you have done that please post your updated code in a reply here and we can help you with the second issue.

Here is how to write code into the forum.

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

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