Skip to main content

HTML Guide

Free site validation

Find out what web pages on your sites are affected by HTML issues.

Bad value X for attribute “href” on element “a”: Invalid host: Illegal character in domain: space is not allowed.

An href attribute on an a element contains an invalid URL that has space characters in the domain.

The domain in a URL cannot contain space characters, for example the following are invalid:

<a href="http://my">link</a>
<a href="">link</a>

Related W3C validator issues