DEV Community

Discussion on: 5 deadly sins of web accessibility

Collapse
atyborska93 profile image
Angelika Tyborska

Simple and to the point! 👏 Under "No semantic HTML", I would also mention the atrocity of using <span> instead of <button> for clickable elements just to skip the extra work of overwriting the browser's default styles.

Collapse
baukereg profile image
Bauke Regnerus • Edited on

Good point. At least add a role='button' to any non-button element with a click event. In addition, <a> should be used to navigate to another URL and should not be used as an alernative to <button>.