Basic HTML and HTML 5 anchor problem

After running tests all are completed except I should only have one a element but was not given direction on removing one of the a elements. What did I miss?

  **Your code so far**

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

<p>Kitty ipsum dolor sit amet, shed everywhere shed <a href="https://freecodecamp.org"> everywhere</a> 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 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15.

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

You have added an extra anchor element here

1 Like

Thank you for such a quick response. When I try to remove the anchor it doesn’t pass the test.

Which anchor element did you remove? When I remove the extra anchor element I quoted from your original code, the challenge passes for me.

I tried to remove them both but I’m not doing it properly if its working for you.

You shouldn’t remove them both. Only remove the second one. The second one is in the video but not in the written challenge instructions.

If I remove one or the other then the link disappears and the text of the URL is shown.

Take the code in the first post and only delete the characters I quoted above.

Ok I got it. Thank you for that!

2 Likes

Hi @Kyle13 !

Welcome to the forum!

I am glad you were able to solve the problem. :grinning:

May I ask you a question?

A lot of people add that second anchor tag like you did and I am trying to understand if there is something in the instructions that leads people to do that.

Would you mind explaining why you initially added that second anchor tag?
If there is some confusion in the wording of the problem, then maybe it can be changed.

Thanks!

Maybe this one @jwilkins.oboe ?

Screenshot (115)

because this one also links to freecodecamp

probably the video

2 Likes

I think the guy in the video added it so I copied his example if my
Memory serves me correctly. I guess he was showing that you could add one but was not part of the exercise. Hope this helps.

At one point it was required for the challenge.
But the challenge was updated and the requirements have changed.
So that is why the outdated video is being removed.
The removal of the video will help future learners. :grinning:

1 Like

Thank you for reaching out and updating. I work on the free code site when I have free time away from work and want to learn as much as I can to switch careers and it’s been so helpful. I appreciate the work you guys do. Also the quick responses from others on the forum help from getting stuck for too long. Hope you have a great week!

Kyle

Good evening! I was wondering if you knew who I could speak to about technical difficulties regarding my account?

TIA,

Kyle

You can post a question in the #support section of the forum

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