What the problem here

There was actually a very similar thread about this exact challenge the other day that I believe you would benefit from.

In summary, The <footer> tag is not the same thing as id="footer". The names just so happen to be the same, but that’s irrelevant.