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