#8 anchor tag used as button

from blog HTMHell, | ↗ original
↗ original
Bad code a href="#" onclick="modal.open()">Logina> Issues and how to fix them If the a element has an href attribute, it represents a link to another resource like a page or a PDF document. The purpose of the element in this example is to trigger an action on the same page with JavaScript. The button element with the type button is more suitable...