Search code examples
htmlhyperlinkw3c-validationtel

HTML checking - Website not valid when using tel inside href


So I get this error when I try to validate it here:

Bad value tel:0000 00 00 00 for attribute href on element a: Illegal character in scheme data: not a URL code point

My html looks like this:

<a href="tel:0000 00 00 00">0000 00 00 00</a>

Is there any way to fix this?


Solution

  • Take the spaces out. Literal spaces are not allowed in URLs and they are not part of the data of a phone number, just formatting for human consumption.