All posts in "Tech Snippets"
0 Shares

The Tabindex Attribute

a couple of years ago

Changing the Tab Order The tabindex attribute is used to define the order that you can tab through elements on a page. Most of the time, the default tab order is fine, as it follows the order of elements in the HTML. For example, <input type=”text” tabindex=”1″ /> … will take tab focus before <input type=”text” […]

0 Shares

Screen Reader Only Content

a couple of years ago

For the Skip to Main Content plugin, I had to create a link that would be visible to screen readers, but not to sighted users. If you were to hide a link by setting display: none in the CSS then screen readers wouldn’t find it. Instead, we position it absolutely, off the left of the screen. .screenreader-only […]