The Skip Link on the Cart Page: Where It Should Actually Land

Most cart pages have a skip link. Far fewer have one that works. The common failure is quiet: the link scrolls the page to the cart heading, the screen looks right, and the keyboard focus stays at the top of the document, so the next tab press throws the shopper back into the navigation they were trying to skip.

Criterion 2.4.1, Bypass Blocks, is a Level A requirement, the floor of the floor. It exists because tabbing through forty navigation links before every page is a real cost multiplied across every visit. The cart page is where that cost hurts most, because shoppers return to it repeatedly in one session.

Focus, not scroll

A working skip link does two things: it points at the id of the main content landmark or heading, and that target carries tabindex minus one so it can receive focus. Clicking the link then moves both the view and the focus. The shopper's next tab lands on the first interactive element after the target, which on a cart page should be a quantity control or a remove button, not the header search box.

Test it by hand. Tab once from the top of the page, press enter on the skip link, then tab again and watch where the focus indicator goes. If it appears in the navigation, the link is decoration. This takes twenty seconds and catches the failure that automated scans wave through, because the link and its target both exist and look correct in the code.

Where exactly to land on a cart page

Land on the cart heading, the one that announces the cart and ideally its item count. Landing directly on the first quantity field skips context a screen reader user needs: how many items, and whether the thing they just added is there. The heading gives orientation; the next tab gives action. That order matters.

Avoid landing on a promotional block. Many cart templates put a banner, a free shipping meter, or a recommendations rail between the header and the cart lines. If your main content target sits above those, the skip link delivers the shopper into marketing, and the bypass has failed in spirit while passing in code. Move the target to the cart itself.

The rest of the bypass story

One skip link is the minimum, not the goal. Cart pages repeat other blocks: a sticky summary, a recommendations carousel, a footer with a hundred links. Keyboard users leaving the cart for checkout should not have to cross all of it. A visible, working checkout button reachable in a sane tab order does more for most shoppers than a second skip link.

Keep the link visible on focus, styled clearly, and never display none it. A skip link that is hidden from sighted keyboard users, including many people with motor disabilities who tab without a screen reader, fails the very users 2.4.1 was written for.

Related reading

These earlier guides go deeper on connected questions: Checkout Timeout Warnings: Warn Before the Session Eats the Cart, Cart Drawer Focus Traps: A Keyboard Check That Takes Five Minutes, and Gift Card Balance Checks: The Result Nobody Announces.

Frequently asked questions

What does WCAG 2.4.1 require exactly?

Criterion 2.4.1, Bypass Blocks, at Level A, requires a mechanism to bypass blocks of content repeated on multiple pages. A skip link to the main content is the standard mechanism, and it must move keyboard focus, not just scroll the view.

Why does my skip link scroll but not work with the keyboard?

Usually because the target element lacks tabindex minus one, so it cannot receive focus. The browser scrolls to it, but focus stays at the top of the document and the next tab returns to the navigation.

Where should a cart page skip link point?

At the cart contents heading, ideally one that includes the item count. That gives a screen reader user orientation first, and the next tab press reaches the first cart control.

How do I test a skip link quickly?

Tab to it, press enter, then tab again and watch the focus indicator. If focus lands on the first control after the cart heading, it works. If it appears back in the header, the link is not moving focus.