About This HTML Issue
The host in this link's URL has a label longer than 63 bytes, which is more than DNS allows for a single label.
A domain name such as docs.example.com is made of labels separated by dots: docs, example and com. RFC 1035 limits each label to 63 bytes, and the validator checks this limit when it parses the host of the URL. DNS can't resolve a host with a longer label, so the link leads nowhere.
The limit applies to the ASCII form of the label. Internationalized domain names are converted to Punycode (xn--...) before the check, and that encoding takes more bytes than the original characters, so a label with non-ASCII letters can go over the limit even when it looks shorter.
Real domains almost never have labels this long. The error usually comes from a missing slash between the domain and the path, which glues the path onto the top-level domain, or from a template that puts an ID or token where a subdomain should go. Paths and query strings have no per-segment limit like this, so moving the long part out of the host fixes the URL.
The validator reports a host that is too long as a whole (more than 255 bytes) with a different message.
Invalid example
The slash after example.com is missing, so the whole path becomes part of the last label:
<a href="https://example.comguides-to-writing-valid-html-for-accessible-websites-and-apps">Read the guide</a>
A long token used as a subdomain has the same problem:
<a href="https://5f2b8c1e9a7d4e6b8c3f1a2d9e7b5c4a6e8f1b3d5a7c9e2f4b6d8a1c3e5f7b9d.cdn.example.com/logo.png">Logo</a>
Valid example
Put the slash back, or move the token into the path:
<a href="https://example.com/guides-to-writing-valid-html-for-accessible-websites-and-apps">Read the guide</a>
<a href="https://cdn.example.com/5f2b8c1e9a7d4e6b8c3f1a2d9e7b5c4a6e8f1b3d5a7c9e2f4b6d8a1c3e5f7b9d/logo.png">Logo</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?
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.
1K Weekly
1,000 monthly checks. Cancel anytime.
Get 1K Weekly →Join teams across 40+ countries