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.


Img element scripted as link:

This <img> element is scripted with onclick to behave like a link. It does not receive keyboard focus and is not recognized as a link by assistive technologies.


go to the new page

Note: Possible to automatically test. This violation can be detected by identifying onclick or similar JavaScript event handlers on <img> elements that are not inside a semantic <a> element.

axe detected: none  |  QualWeb detected: none