JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" placeholder='Good Morning'>
<div>hi</div>
<button>hello world</button>
<div>
<span>百度</span>
</div>
<a href="#">www.baidu.com</a>
CSS
* {
font-family: Optima;
}
JavaScript
document.addEventListener('keydown', function(e) {
if(e.keyCode === 9) {
console.log(document.activeElement);
}
})