Menu

1 / 2

Accessibility on a Tool Page: Labels, Focus States, and a Keyboard-Only Download

DEV Community: php·Mobeen Ahmed·11 days ago
#V1kZd4hw
#devto#dev#download#mouse#keyboard
Long article (602 words) — no AI summary yet.
Reading 0:00
15s threshold

I built my video downloader for people in a hurry. Paste a link, tap Download, get the file. That is the whole job, and for a long time I judged the page by one thing: does it work fast for someone using a mouse on a fast connection?

Then I tried using it with the keyboard alone. Tab, tab, tab — and it fell apart.

The link box had no label. Visually it was obvious: a big box in the middle of the page with a placeholder saying "Paste a link". But a placeholder is not a label. A screen reader never announced what the box was for, and once you started typing the placeholder vanished, so the instruction vanished with it. The fix was a real <label> tied to the input with for and id , visually hidden so the design stayed the same, but announced clearly to anyone who cannot see the layout. The same went for the quality dropdown: it said "720p" and nothing else, so I gave it a label too — "Quality" — so the choice means something when you cannot see the words next to it.

Focus states were the next embarrassment.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.