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