Good and Bad Navigation Patterns for Long HTML Pages

Some HTML pages can run quite long. The longer the page, the more important clean, consistent navigation becomes.

Good Pattern

Example: https://codepen.io/Alexis-Kypridemos/pen/WbGQJmy

Why

It helps readers build a pattern. They know where to look for navigation. Also, if you’re coding the HTML compiler or transformation, it’s the easiest to implement.

Bad Patterns

1. Use CSS to create a paginated effect

All sections are hidden, except the one the reader selects from the table of contents.

Example: https://codepen.io/Alexis-Kypridemos/pen/PwGPaYO

Why

Too “magical” and brittle. For example, if you use the browser’s “Copy Link to Highlight” functionality, the behavior can become unpredictable. For most cases, making all sections visible and scrollable, one after the other, is the cleaner option for both the reader and implementer.

Example: https://codepen.io/Alexis-Kypridemos/pen/LERprpR

Why

It’s too much. If all the content is on a single HTML page, the previous and next links are unnecessary and create visual “noise”. Readers are likely to find it more intuitive to just scroll up and down.

Example: https://codepen.io/Alexis-Kypridemos/pen/RNGWJRL

Why

You break the pattern. Each time, a reader clicks a “Table of Contents” link, they get a slightly different result. Also, by jumping to a specific bullet, for example the last one, obscures valuable context. The other contents might not be visible on screen, and the reader has to scroll up to view them. It’s disorienting, even if momentarily.

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
the-power-of-human-connection-in-gtm

The power of human connection in GTM

Next Post

Octave Launches New Brand Built Around Unleashing Intelligence at Scale

Related Posts