In HTML, if you want to make arbitrary elements from the keyboard, you can add the tabindex="0" attribute to them (for example, http://snook.ca/archives/accessibility_and_usability/elements_focusable_with_tabindex ).
tabindex="0"
The HTML5 specification specification ratifies this, making the tabindex attribute legal for any element:
tabindex
However, as far as I can tell, this does not work for <label> elements in Chrome and Safari, or Firefox before 3.6 (and there it stops the user from navigating through the page after they reach <label> ).
<label>
Is there a way to make a <label> keyboard to focus in Safari / Chrome and / or older versions of Firefox?
I think the whole purpose of a tag tag is to set focus on other elements, not on itself.
Source: https://habr.com/ru/post/1402712/More articles:Zend Application from a subdirectory where the links to Zend are correct - phpDraw a sprite over CameraCaptureTask in WP7 (XNA or Silverlight) - windows-phone-7How to get element and html from window.open js function with jquery - javascriptCreating a generic number class in C ++ - c ++WCF double impersonation? - securitywhat is actually a scripting language? - javascriptReturn Tuple instead of throwing exception ()? - designHow can I group client objects in MS Dynamics - designHow to stop page unloading? - javascriptHow to gently drag a panel from the screen, for example, iPhone JetBlue - iosAll Articles