Reputation: 34627
I have a rough idea that it hops from <input>
to <input>
but is there any documentation for it? My purpose was to look for a way to set focus only in css.
Upvotes: 0
Views: 185
Reputation: 86744
If by "focus" you mean the focused element when tabbing through elements in a rendered page, then the tabindex=nn
attribute defines the tabbing order.
According to the W3C Documentation
The following elements support the tabindex attribute: A, AREA, BUTTON, INPUT, OBJECT, SELECT, and TEXTAREA
See also Creating Logical Tab Order with the Tabindex Attribute
Upvotes: 1