Illegal character in the domain for the attribute href


Rule ID: illegal-character-in-link-domain

This rule determines if the domain specified in attribute href on <a> or <area> HTML element does not contain illegal characters considered unsafe.

Incorrect example

<a href="https://This is incorrect domain/">Invalid link</a>

How to fix it

  • Ensure domain specified in the attribute href does not contain illegal characters, e.g. space.


Quality, Best Practice, SiteLint