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.


Span element scripted as link:

This <span> element is scripted to behave like a link using JavaScript. It’s still not a semantic <a> element, which is the point of this violation.


Fake link

Note: Possible to automatically test. This violation can be detected by scanning for JavaScript navigation on non-link elements (e.g., a <span>) even when ARIA is added. The correct fix is to use a real <a href>.

axe detected: none  |  QualWeb detected: none