a href="javascript: void(0)"
is considered a bad practice and I can't use href="#"
in every case, so I'm thinking to add an empty a
with tabIndex=0
in order to be accessible with keyboard.
Is it considered a good practice?
P.S. Bootstrap's dropdown needs <a>
in inner elements for keyboard navigation, so I have to use <a>
.