2.7 KiB
Invalid URL Test Cases
Here are some invalid URLs using various Markdown link and image syntaxes:
-
Broken Protocol
Reason: Misspelled protocol ("htp" instead of "http") -
No Domain
Reason: Missing domain -
Missing Name Before TLD
Reason: Missing domain name before TLD -
Underscore in Domain
Reason: Underscore in domain, not allowed in DNS hostnames -
Domain Starts with Hyphen
Reason: Domain cannot start with a hyphen -
Double Dot in Domain
Reason: Double dot in domain -
Non-numeric Port
Reason: Invalid port (non-numeric) -
Unsupported Protocol
Reason: Unsupported protocol (should be http/https) -
[Space in Domain](http://example .com)
Reason: Space in domain -
Extra Slash in Protocol
Reason: Extra slash in protocol separator
Correctly Formatted but Nonexistent URLs
These URLs are syntactically correct but do not point to real sites:
Valid URLs
These URLs are well-formed and point to known good sites:





