Does anyone have a list of the HTML (HTML5) elements that are not tabbable, even if a tabindex is specified? (By tabbable, I mean that they can receive the focus through repeatedly pressing the "tab" key.)
We know that there are those elements which are tabbable by default, such as input
or textarea
. We also know that there are some elements which are only tabbable if a tabindex is explicitly specified, such as div
and span
elements.
According to W3Schools, "In HTML5, the tabindex attribute can be used on any HTML element". However, there are surely some elements which are not tabbable even if they have a tabindex. For example, it makes no sense for the param
element to be tabbable, or the head
element. I also don't really think it's possible for the option
element to be tabbable, but I'm not sure about that. And I'm even less sure about things like map
which can contain tabbable elements but are not usually tabbable themselves.
Can someone give me a list of all the elements that can never receive focus even if they have a tabindex?
head
element is not tabbable. Neither istitle
orparam
, but theoption
element is tabbable (only if you provide a tabindex, obviously). That still does not answer my question though. – Haroldsonobject
is not tabbable, even if it displayed. Also, where can I find a list of those elements that can be displayed? – Haroldson