Discussion Frontend HTML

TabIndex

The tabindexglobal attribute indicates if its element can be focused, and if/where it participates in sequential keyboard navigation (usually with the Tab key, hence the name).
Some html elements like div tag are not focusable by default. It means, they are not selected by pressing Tab key.
But in some cases we should need to select div tags by pressing Tab key. ( for example, customized dropdown using div tag)
We can resolve this issue by using tabIndex attribute.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *