Coding task · HTML and CSS course · Module 10: Accessibility (a11y)

Skip Link and Keyboard Navigation

A skip link allows users to bypass navigation and jump directly to the main content. It is visually hidden but appears on focus. Key properties: position: absolute, top: -50px, and on :focus change top to 0.

Task

Add a skip link at the beginning of the page, id="main-content" to main, and CSS styles for .skip-link (hidden, visible on focus). Also add focus-visible for a, button, and input.