Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<meta charset=utf-8>
<title>valid value attribute</title>
<input type=url value="a:foo.com"><!-- scheme-private -->
<input type=url value="foo:/"><!-- scheme-private-slash -->
<input type=url value="foo://"><!-- scheme-private-slash-slash -->
<input type=url value="foo:/bar.com/"><!-- scheme-private-path -->
<input type=url value="c:/foo"><!-- scheme-private-single-letter -->
<input type=url value="madeupscheme:/example.com/"><!-- scheme-private-single-slash -->
<input type=url value="file:/example.com/"><!-- scheme-file-single-slash -->
<input type=url value="ftps:/example.com/"><!-- scheme-ftps-single-slash -->
<input type=url value="gopher:/example.com/"><!-- scheme-gopher-single-slash -->
<input type=url value="ws:/example.com/"><!-- scheme-ws-single-slash -->
<input type=url value="wss:/example.com/"><!-- scheme-wss-single-slash -->
<input type=url value="javascript:/example.com/"><!-- scheme-javascript-single-slash -->
<input type=url value="mailto:/example.com/"><!-- scheme-mailto-single-slash -->
<input type=url value="madeupscheme:example.com/"><!-- scheme-private-no-slash -->
<input type=url value="ftps:example.com/"><!-- scheme-ftps-no-slash -->
<input type=url value="gopher:example.com/"><!-- scheme-gopher-no-slash -->
<input type=url value="wss:example.com/"><!-- scheme-wss-no-slash -->
<input type=url value="mailto:example.com/"><!-- scheme-mailto-no-slash -->
<input type=url value="data:text/plain,foo"><!-- scheme-data-no-slash -->
<input type=url value="http://%25DOMAIN:foobar@foodomain.com"><!-- userinfo-username-contains-percent-encoded -->
<input type=url value="file:"><!-- scheme-file-scheme-only -->
<input type=url value="file:/"><!-- scheme-file-slash-only -->
<input type=url value="file://"><!-- scheme-file-slash-slash-only -->
<input type=url value="file:test"><!-- scheme-file-no-slash -->