The Balai’s article page in a sandboxed iframe: Mas Bayu’s Tabs are counted, Mbak Wulan says whether the skip link shows while focused, and Enter really…
Why it matters
WCAG 2.4.1 (Bypass Blocks) asks every page for a way past repeated blocks. A skip link is the cheapest accessibility fix there is: one <a>, a few lines of CSS. Nearly every big site has one; you just rarely see it, because it only shows when tabbed to.
The key idea
Hidden is fine, out of the Tab order is not
Common mistakes
The skip link is there but never shows when tabbingdisplay: none or visibility: hidden takes the link out of the Tab order, so .skip:focus never matches. Hide it with an off-screen position (position: absolute; top: -60px) and bring it back on :focus. The sr-only pattern also needs a :focus rule that opens it again.
Clicking the skip link does not move focus to the content When the target (<main id="main">) cannot take focus, the browser drops focus to <body>. Modern browsers do start the next Tab from #main, but a screen reader is not told where it is and the focus ring is gone. Put tabindex="-1" on the target: focus really moves, and it still stays out of the Tab order.
The skip link exists, but the first Tab goes to a nav link Tab follows the order of the elements in the HTML. Put <a href="#main"> at the very top of <body>, before <header>. Avoid a positive tabindex to "force" the order: it scrambles the whole Tab order.
Try it in this playground
Open No skip link, then Tab to the article Count the Tabs before focus gets into <main>. That is what keyboard users feel on every page.
Open Correct (More examples): Tab once, then Enter The skip link shows on the first Tab, Enter jumps to #main, and document.activeElement becomes <main>.
Open display: none, then Tab The link is in the HTML, yet the first Tab goes straight to the site name: Tab never stops there.
Open main, no tabindex: Tab, Enter, then Tab again After Enter focus falls to <body>, yet the next Tab still starts from #main: the browser moved the navigation starting point, not focus.