Can't figure how to set the id 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 to Bottom</a>

<img src="https://www.bit.ly/fcc-relaxing-cat" 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36

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

Link to the challenge:

Do you have a question?

Yes please, I’m a beginner I’m trying to change my external link to an internal link but I cant seem to get the part where it says " Then add an id attribute with a value of footer to the <footer> element at the bottom of the page." right. Thank you

You’ve worked with html attributes a lot, even if you haven’t noticed it. For example, the a element has an attribute href with the value of “#footer”.

Down at the bottom of your code is a footer element. You need to give it the attribute id with the value of “footer”.

Yeah but how exactly am I going to do that ?

What have you tried? How have you added attributes to elements before?

just like the given example: <h2 id="footer copyright cat photo app

Why are you adding the id to a h2 element instead of the footer element?

Didn’t know it wasn’t the right thing. what was i supposed to use please?

HI @Mikelson !

Welcome to the forum!

This is the footer tag.

<footer>Copyright Cat Photo App</footer>

The failing test is telling you that you are supposed to have an id of footer in the opening tag.

make sense?

Hi, Pleased to meet you
Yeah that’s correct. can you help me with that please

Ok. Now that you know what element to add the attribute to, go ahead and try it.

Can we see your latest code of what you tried?
Did you add the id to the opening footer tag?

Sorry I’m still not getting it. can you assist me by typing out the correct code please.

We are not allowed to give out full answers on the forum.

But I’ll try to break it down the best I can.

This is your current code.

<h2>CatPhotoApp</h2>
<main>

<a href="#footer" >Jump to Bottom</a>

<img src="https://www.bit.ly/fcc-relaxing-cat" 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>

You are super close to solving the problem .

You need to add the footer id inside the opening tag here

<footer ID GOES HERE>Copyright Cat Photo App</footer>

Once you add that id then the test will pass.

Do you need help creating an id called footer?
Is that where the confusion is?

Once you know how to create that id than you add that where I showed you and the test will pass

Hope that helps!

Wow thank you so much it worked

1 Like

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