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