Skip to main content
HTML Validation

Bad value “mailto:X” for attribute “href” on element “a”: Illegal character after “ilto:”. Tab is not allowed.

About This HTML Issue

This mailto: link has a tab character inside its href, and a URL can't contain a raw tab.

A tab is hard to spot because editors draw it as blank space, so the value can look like it has an ordinary space after the colon. It usually comes from copy and paste, for example from a spreadsheet or a table, where cells are separated by tabs. The validator says the tab comes "after ilto:", which means anywhere after the scheme: right after the colon, inside the address, or after the comma between two recipients. The character reference 	 is decoded before the check, so it triggers the same message.

A tab at the very start or end of the value isn't reported, because leading and trailing whitespace is stripped from URLs. A tab inside the subject or body parameters gets a different message, "Tab, new line or carriage return found." To put a tab in the message body, encode it as %09.

Browsers remove tabs from URLs before following them, so the link usually still opens the mail client with the right address, but the markup is invalid. Delete the tab so the address follows mailto: directly. If you can't see where it is, search the source for 	 and for tab characters, or retype the address.

Invalid example

<a href="mailto:&#9;info@example.com">Email us</a>
<a href="mailto:info@example.com,&#9;sales@example.com">Email sales</a>

Valid example

<a href="mailto:info@example.com">Email us</a>
<a href="mailto:info@example.com,sales@example.com">Email sales</a>

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?
🌍 Trusted by teams worldwide

Validate at scale.
Ship accessible websites, faster.

Automated HTML & accessibility validation for large sites. Check thousands of pages against WCAG guidelines and W3C standards in minutes, not days.

Scheduled Reports
API Access
Open Source Standards
€5 / week

1K Weekly

1,000 monthly checks. Cancel anytime.

Get 1K Weekly →

Join teams across 40+ countries