Skip to main content
HTML Validation

Bad value X for attribute “href” on element “a”: Illegal character in path segment

About This HTML Issue

The href attribute of an <a> element contains an invalid character, that should be properly encoded as a URI percent-encoded character.

Find issues like this automatically

Rocket Validator scans thousands of pages in seconds, detecting HTML issues across your entire site.

Help us improve our guides

Was this guide helpful?

Ready to validate your sites?
Start your free trial today.