I have a page which has got many div under anchor tag.
<a>
<div onclick=alert("Hi First div");>First</div>
</a>
<a>
<div onclick=alert("Hi Second div");>Second</div>
</a>.......
I have onclick event on every div which is working fine as i click on the div.
Is there a way i can traverse every div using tab (with/without using tabindex)and on click of enter key on keyboard the alert is appeared without writing any JS?
I am only trying to acheive this for accessibility.