Bis zum Fokus visuell verborgen
Blenden Sie den Link für Mausnutzer aus und beim Tabben ein.
Bis zum Fokus visuell verborgen ist eine kostenlose Web Accessibility Academy-Lektion auf CoddyKit. Dies ist Lektion 3 von 4. Du kannst die komplette Lektion unten kostenlos lesen – dann übst du sie direkt im Browser mit einem integrierten Code-Editor und einem KI-Tutor rund um die Uhr. Sie ist Teil des Web Accessibility Academy-Lernpfads, und dein Fortschritt wird über Web und CoddyKit-App synchronisiert. Der Web Accessibility Academy-Kurs umfasst insgesamt 4 Lektionen.
Teile dieser Lektion wurden noch nicht übersetzt und werden auf Englisch angezeigt.
The Design Tension
Skip links are vital, yet many teams worry they clutter the layout. The classic answer: hide it visually, but keep it ready for keyboard users.
Never display none
Do not reach for display none or visibility hidden. Those remove the link from the accessibility tree, so no one can focus it.
Visually Hidden, Still There
The goal is a visually hidden state: invisible on screen, but fully present for keyboards and screen readers.
The Clip Pattern
A common trick shrinks the link to one pixel and clips it. It stays in the DOM and focus order, just out of sight.
.skip-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }Reveal It on Focus
The magic is the focus state. When Tab lands on the link, your CSS restores its size and pulls it back into view.
.skip-link:focus { width: auto; height: auto; clip: auto; top: 0; }Why focus, Not hover
Use focus, never hover. A keyboard user cannot hover, so a hover-only reveal leaves the link permanently invisible to them.
Make It Clearly Visible
When revealed, give it a solid background and padding. It should look like an obvious button, not faint text the user might miss.
Keep the Focus Outline
Do not strip the focus outline on the revealed link. Users need to see exactly where their focus has landed.
Mind the Position Math
Often the hidden link sits offscreen with a negative top, then slides to top zero on focus. The slide makes the reveal feel deliberate.
A Reusable Utility
This visually hidden pattern is so useful that most teams keep it as a shared utility class for any sr-only content.
Test the Reveal
Press Tab from a fresh load. The skip link should pop into view immediately. Tab away and it should vanish again. ✅
Quick Check
Which approach correctly hides a skip link until needed?
Recap
Hide the skip link with clipping, never display none, and reveal it on focus with a clear outline. Invisible until it is needed. 🎯
Häufig gestellte Fragen
Ist die Lektion „Bis zum Fokus visuell verborgen“ kostenlos?
Ja — der vollständige Text von „Bis zum Fokus visuell verborgen“ ist hier im Web kostenlos zu lesen. Um sie interaktiv zu üben (integrierter Code-Editor und 24/7 KI-Tutor) und den Rest des Web Accessibility Academy-Kurses freizuschalten, upgrade auf CoddyKit PRO. Der Web Accessibility Academy-Kurs umfasst insgesamt 4 Lektionen.
Was lerne ich in „Bis zum Fokus visuell verborgen“?
Blenden Sie den Link für Mausnutzer aus und beim Tabben ein. Du übst Web Accessibility Academy mit praktischem Code, den du direkt im Browser ausführst, und ein 24/7 KI-Tutor beantwortet deine Fragen während du die Lektion bearbeitest.
Brauche ich Erfahrung, um Web Accessibility Academy zu starten?
Keine Vorkenntnisse erforderlich. Web Accessibility Academy auf CoddyKit ist für Anfänger bis fortgeschrittene Lernende strukturiert, sodass du hier starten oder von Anfang an beginnen und in deinem eigenen Tempo voranschreiten kannst. Dies ist Lektion 3 von 4.
Wie lange dauert die Lektion „Bis zum Fokus visuell verborgen“?
Die meisten CoddyKit-Lektionen dauern etwa 5–10 Minuten. Jede ist kompakt und interaktiv, sodass du stetig Fortschritte machst und genau dort weitermachst, wo du aufgehört hast – im Web und in der App.
Kann ich in dieser Web Accessibility Academy-Lektion Code schreiben und ausführen?
Ja. Jede Web Accessibility Academy-Lektion enthält einen integrierten Code-Editor, sodass du echten Code direkt in deinem Browser schreibst und ausführst und sofort KI-Feedback erhältst — ohne lokale Einrichtung erforderlich.
Alle Lektionen in diesem Kurs
- Warum es „Zum Hauptinhalt springen“ gibt
- Einen funktionierenden Skip-Link erstellen
- Bis zum Fokus visuell verborgen
- Mehrere Überspringen-Links für große Seiten