What's wrong with my code? It says "The a text should be "Jump to Bottom". The footer tag should have an id attribute set to "footer"."

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

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>

<a href ="#footer">jump t bottom</a>
<p> id="footer"</p>

<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. Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched. 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. Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff. 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>Meowwww loved it, hated it, loved it, hated it yet spill litter box, scratch at owner, destroy all furniture, especially couch or lay on arms while you're using the keyboard. Missing until dinner time toy mouse squeak roll over. With tail in the air lounge in doorway. Man running from cops stops to pet cats, goes to jail.</p>
<p>Intently stare at the same spot poop in the plant pot but kitten is playing with dead mouse. Get video posted to internet for chasing red dot leave fur on owners clothes meow to be let out and mesmerizing birds leave fur on owners clothes or favor packaging over toy so purr for no reason. Meow to be let out play time intently sniff hand run outside as soon as door open yet destroy couch.</p>

</main>

<footer>Copyright Cat Photo App</footer>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Linux; Android 11; vivo 1906) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Mobile Safari/537.36

Challenge: Link to Internal Sections of a Page with Anchor Elements

Link to the challenge:

You have two issues:

<a href ="#footer">jump t bottom</a>

That is not the text you were told to use.

and here:

<p> id="footer"</p>

not only is that not the footer, but that should be an attribute so it should come before the >.

2 Likes

Thank you so much Sir. Can you help me Sir in finishing the code? I still hardly understand if it’s ok to you Sir?

What have you tried? Where are you stuck in his explanation?

We won’t write the answer for you, but we can help you fix your code.

1 Like

Hello Sir Jeremy. Sir Kevin is right but I really don’t know in what part of the code I should change to fix the error😔

Lets start with this. What text do the instructions tell you to use. Your text is close but not exactly what was requested

Change your external link to an internal link by changing the href attribute to #footer and the text from cat photos to Jump to Bottom .

I’ll try changing it Sir. Thank you so much Sir Jeremy

Good morning Sir Jeremy. I still have this comment Sir.
The footer tag should have an id attribute set to “footer”.:pensive:

What is your updated code?

There are two mistakes here. First one is <a href="#footer">jump **t** bottom</a>
and second one is,
<p> id="footer" </p>

The task wants you to create an internal link. When you click on that link you are supposed to get on the bottom of you page.

To do this first you will have to set up an link which you have already done by: but it seems like you accidentally wrote an type there, don’t worry though, you can fix it by changing the “t” to “to” so it reads “jump to bottom”

Now,

Your second mistake is just too out of way, but its fine we all are learning.

see, the id attribute gives an unique id to an element. but it looks like you just wrote it as a plain text inside the p element, you’ll need to get rid of it. and give the id to your element by doing <footer id="footer">

and that’s pretty much it!

if anything I’ll suggest you to learn more about “id” attribute before going onto furter tasks.

Hope this helps :slight_smile:

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