I have a project of a template, in the footer of it has a button that leads to the top of the site, when it squeezes it leads to the top of the site but leaves the id "#top" in the site link (mysite / index. html # top), how can this not happen?
No body has an id named top:
<body id="top">
In the footer has a link where it leads to the top:
<a href="#top"> Voltar para o topo </a>