Last active
December 28, 2015 07:29
-
-
Save arozwalak/7464469 to your computer and use it in GitHub Desktop.
HTML5: HTML5 Forms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form> | |
<input type="email" placeholder="Enter your e-mail" required> // Validation of email | |
<input type="url"> | |
<input type="range" min="1" max="100" step="5"> | |
<input type="tel" pattern="\d{3}-\d{3}-\d{4}"> | |
<input type="number"> | |
<input type="submit"> | |
<progress min="0" max="100" value="0"></progress> | |
<meter min="0" max="100" value="50">50</meter> | |
</form> | |
<script> | |
var p = document.querySelector('progress'); | |
setInterval(function(){ | |
p.value += 1; | |
}, 50); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment