Use tabindex to Add Keyboard Focus to an Element

PHOTO EMBED

Tue Dec 22 2020 01:04:44 GMT+0000 (UTC)

Saved by @Webucation1 #html

<div tabindex="0">I need keyboard focus!</div>

content_copyCOPY

freecodecamp-tabindex also allows the CSS pseudo-class to :focus.

https://www.freecodecamp.org/learn/responsive-web-design/applied-accessibility/use-tabindex-to-add-keyboard-focus-to-an-element