How to add an id attribute with a value of "footer" to the <footer> element at the bottom of the page

So I have been struggling with this code since three days ago. As you may see below I wrote this code following the instruction. But when I run the test everything looks like right except this message, which I am unable to figure out.Here is the message:
The footer tag should have an id attribute set to “footer”
Can you help please

2 Likes

There are many such posts in the forum and answers to each one are identical.

<footer id="footer" ....

2 Likes

Can you point out to me where I got it wrong on this Code?

<h2>CatPhotoApp</h2>
<main>
  
  <a href="#footer">jump to bottom</a>
  <footer id="footer">jumpto bottom</footer>
  
  <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 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>
1 Like

Thank you for your help, I got it right this time.

1 Like

I know this is old however, I’d like to say thank you so much for your reply on here. I worked for a while trying to figure that out and ended up getting it on the first attempt after I read this. Appreciate you answering! :wink: @camperextraordinaire

@Adugnaf glad you asked for assistance with this one because, I was stuck until I came across your post. Appreciate you asking because , it actually showed me sometimes asking is better than time spent not knowing. :wink:

I still don’t know how to work on this

@camperextraordinaire

@btran

The footer element is already there. The text in the footer element reads “Copyright Cat Photo App.”

They would like you to ID the footer element with the name/value of “footer”, so add id=“footer” to the footer element. See @hbar1st answer up above.

My is not working :frowning:

1 Like

This post is over 2 years old, and could be outdated. If you have a question about your own code, please open your own topic.

The easiest way to create a topic for help with your own solution is to click the Ask for Help button located on each challenge. This will automatically import your code in a readable format and pull in the challenge url while still allowing you to ask any question about the challenge or your code.

Thank you.