Scripting misuse (unnecessary-scripting)

Links must be created using semantic HTML elements like <a> or <area>, not by scripting other elements to behave like links.


Div element scripted as link:

This <div> element is made to behave like a link using JavaScript event handlers. Even though keyboard support is added, it is not announced as a link by assistive technologies.


View the results of the survey.

Note: Possible to automatically test. This violation can be detected by identifying onclick and onkeypress handlers on non-interactive elements (e.g., <div>) that are not inside or replacing a semantic <a> element.

axe detected: none  |  QualWeb detected: none