Assigning id attribute to anchor element

I did this:

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

There was an error saying the footer tag should have an id set to “footer”
What is wrong with my coding?

Why is the element with the id “footer” an h2 instead of a footer? It also doesn’t look like it’s at the bottom. I think that you may have rushed a bit in this challenge. I suggest reading the instructions and the code that was provided slowly and carefully.

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