There are definitely sites (usually documentation) where I can press Alt-N to get to the next page and Alt-P to get to the previous one and I have no idea how that happens.
<link rel="next" href="/page/2">
see https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types