Can someone help me with how "the a tag should have an href attribute set to #footer"?

We do not give out answers. We guide you to the solution.

The sample code in the lesson shows both the a element and the footer element.

You do have the footer element correct.
What you did was create a new a element and move it to the bottom. That you were not supposed to do. Edit the existing a element following the instructions and leave it where it is.

When you make a change we’ll need to see your new code.

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).