Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<meta charset=utf-8>
<title>valid href</title>
<link href="a:foo.com" rel=help><!-- scheme-private -->
<link href="foo:/" rel=help><!-- scheme-private-slash -->
<link href="foo://" rel=help><!-- scheme-private-slash-slash -->
<link href="foo:/bar.com/" rel=help><!-- scheme-private-path -->
<link href="c:/foo" rel=help><!-- scheme-private-single-letter -->
<link href="madeupscheme:/example.com/" rel=help><!-- scheme-private-single-slash -->
<link href="file:/example.com/" rel=help><!-- scheme-file-single-slash -->
<link href="ftps:/example.com/" rel=help><!-- scheme-ftps-single-slash -->
<link href="gopher:/example.com/" rel=help><!-- scheme-gopher-single-slash -->
<link href="ws:/example.com/" rel=help><!-- scheme-ws-single-slash -->
<link href="wss:/example.com/" rel=help><!-- scheme-wss-single-slash -->
<link href="javascript:/example.com/" rel=help><!-- scheme-javascript-single-slash -->
<link href="mailto:/example.com/" rel=help><!-- scheme-mailto-single-slash -->
<link href="madeupscheme:example.com/" rel=help><!-- scheme-private-no-slash -->
<link href="ftps:example.com/" rel=help><!-- scheme-ftps-no-slash -->
<link href="gopher:example.com/" rel=help><!-- scheme-gopher-no-slash -->
<link href="wss:example.com/" rel=help><!-- scheme-wss-no-slash -->
<link href="mailto:example.com/" rel=help><!-- scheme-mailto-no-slash -->
<link href="data:text/plain,foo" rel=help><!-- scheme-data-no-slash -->
<link href="http💩//:foo" rel=help><!-- path-contains-pile-of-poo -->
<link href="http://%25DOMAIN:foobar@foodomain.com" rel=help><!-- userinfo-username-contains-percent-encoded -->
<link href="//foo/bar" rel=help><!-- scheme-schemeless-relative -->
<link href="/" rel=help><!-- path-slash-only-relative -->
<link href="/a/b/c" rel=help><!-- path-simple-relative -->
<link href="/a%2fc" rel=help><!-- path-percent-encoded-slash-relative -->
<link href="/a/%2f/c" rel=help><!-- path-percent-encoded-slash-plus-slashes-relative -->
<link href="?" rel=help><!-- query-empty-no-path-relative -->
<link href="#" rel=help><!-- fragment-empty-hash-only-no-path-relative -->
<link href="#/" rel=help><!-- fragment-slash-relative -->
<link href="#;?" rel=help><!-- fragment-semicolon-question-mark-relative -->
<link href="#β" rel=help><!-- fragment-non-ascii-relative -->
<link href="foo.com" rel=help><!-- scheme-none-relative -->
<link href=":" rel=help><!-- path-colon-relative -->
<link href=":a" rel=help><!-- path-leading-colon-letter-relative -->
<link href=":foo.com" rel=help><!-- path-leading-colon-chars-relative -->
<link href=":/" rel=help><!-- path-leading-colon-slash-relative -->
<link href=":#" rel=help><!-- path-leading-colon-hash-relative -->
<link href=":23" rel=help><!-- path-leading-colon-number-relative -->
<link href="/:23" rel=help><!-- path-slash-colon-number-relative -->
<link href="::" rel=help><!-- path-leading-colon-colon-relative -->
<link href="::23" rel=help><!-- path-colon-colon-number-relative -->
<link href="/💩" rel=help><!-- path-slash-pile-of-poo -->
<link href="file:" rel=help><!-- scheme-file-scheme-only -->
<link href="file:/" rel=help><!-- scheme-file-slash-only -->
<link href="file://" rel=help><!-- scheme-file-slash-slash-only -->
<link href="file:test" rel=help><!-- scheme-file-no-slash -->