HTML Guides for HTML
Learn how to identify and fix common HTML validation errors flagged by the W3C Validator — so your pages are standards-compliant and render correctly across every browser. Also check our Accessibility Guides.
A remote resource referenced in your HTML returned an HTTP 508 (Loop Detected) status, meaning the server encountered an infinite loop while trying to serve the file.
This error occurs when your HTML references an external resource — such as a stylesheet, script, image, or other linked file — and the server hosting that resource gets stuck in a redirect loop or circular dependency. The W3C validator tried to fetch the resource but couldn't because the remote server gave up.
This is a server-side issue, not an HTML syntax error. The problem lies with the server hosting the resource, not your markup. Common causes include misconfigured redirects, circular symbolic links on the server, or WebDAV configurations that detect infinite loops.
To fix this, you should:
- Check the URL — Open the referenced URL directly in a browser to confirm it fails.
- Fix the server configuration — If you control the server, look for circular redirects or recursive includes.
- Host the resource yourself — If you don't control the remote server, download the resource and serve it locally.
- Use a different CDN or source — Switch to a reliable alternative host.
HTML Examples
Before: referencing an unreachable remote resource
<linkrel="stylesheet"href="https://example.com/looping/styles.css">
<scriptsrc="https://example.com/looping/app.js"></script>
After: hosting locally or using a reliable CDN
<linkrel="stylesheet"href="/css/styles.css">
<scriptsrc="/js/app.js"></script>
If the resource is a popular library, use a trusted CDN instead:
<linkrel="stylesheet"href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css">
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.
Pro Trial
Full Pro access. Cancel anytime.
Start Pro Trial →Join teams across 40+ countries