22 ms·
This doesn't include my "favourite," putting a heading for accessibility at a -10000 position, so screen readers would read it, but it didn't render on the scre
by davidy123 3y ago
This doesn't include my "favourite," putting a heading for accessibility at a -10000 position, so screen readers would read it, but it didn't render on the screen.
- bonzini 3y agoDoes it still work? Or do you have to use ARIA?
- davidy123 3y agoI don't see why it wouldn't work, but the right thing to do is use accessibility features.
- jorgesborges 3y agoThis still works and is a somewhat common practice, especially for something like a skip link. Try pressing tab on some of your favorite websites you might find they use this technique. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#skip_links https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#...
- arcanemachiner 3y agoI think you can use `visibility: hidden` or something like that.
- robertc 3y agoMost screen readers ignore hidden elements IIRC.
- zerocrates 3y agoThis (as well as close relatives of this) is still relatively common because we still don't have a great option for to have non-visible text that's screen-reader accessible in all cases. aria-label and things like that have replaced some usages of this pattern but not all.