The supposed duplicate question linked in the comments asks for JavaScript/jQuery answers, but from your tags it looks like you're looking for a pure HTML/CSS solution (note: question tags have since been edited). You can do it using an a
tag without any JS.
Just put an element with a certain id
at the very bottom of your markup (in this case it's another anchor with the id bottom
), then you can use the original a
tag to link to that element within the page. If the new element is at the bottom of the page, then you're linking to the bottom of the page.
The div with class spacer
(and a height of 800px) is used in this example to push some of the content down on the page, so that the document has a scrollbar. That way you can see the page scroll after you click the internal link.
Live Demo:
.spacer {
height: 800px;
}
<a href="#bottom">Click to go to bottom</a>
<div class="spacer"></div>
Bottom of the page
<a id="bottom"></a>