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