4

In HTML, if you want to make arbitrary elements keyboard-focusable, you can add the attribute tabindex="0" to them (as per e.g. http://snook.ca/archives/accessibility_and_usability/elements_focusable_with_tabindex).

The HTML5 spec sort of ratifies this by making the tabindex attribute legal on any element:

However, as far as I can tell, this doesn’t seem to work for <label> elements in Chrome and Safari, or Firefox until 3.6 (and there it stops the user from tabbing any further through the page once they reach the <label>).

Is there any way to make <label>s keyboard-focusable in Safari/Chrome, and/or older versions of Firefox?

1 Answer 1

2

I think that the whole purpose of the label tag is to set focus on other elements and not on itself.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.