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

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

#1

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

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

<footer id="footer" ....


#3

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>

#4

I’ve edited your post for readability. When you enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

You were not supposed to add a second footer element. The footer element at the bottom is in the correct location. Delete your added footer element and just add the id to the one at the bottom.


#5

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


#6

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: @RandellDawson


#7

@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: