Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Steven Parker227,141 Points
I'm dubious of the "bad idea" advice.
I don't know who those guys are, but the the definitive resource I rely on is MDN.
The MDN page for tabindex doesn't seem to have any warnings or recommendations against using it. The one thing I might agree with the other guys on is that there could be better ways to get what you're ultimately after.
Robert Tyree13,335 Points
I hear you, but pretty sure it stands up.
HTML5.2 working draft: "Warning: Using a positive value for tabindex to specify the element’s position in the sequential focus navigation order interacts with the order of all focusable elements. It is error-prone, and therefore not recommended. Authors should generally leave elements to appear in their default order."