Created
August 19, 2013 15:47
-
-
Save jhafner/6270619 to your computer and use it in GitHub Desktop.
Describes HTML5 Attributes for Forms on Mobile Devices
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 id="mobile-form"> | |
<input type="tel" /> <!-- Displays number pad --> | |
<input type="text" pattern="\d*" novalidate /> <!-- Displays number pad on text fields --> | |
<input type="email" autocapitalize="off" /> <!-- Displays email input, disables auto-capitalization --> | |
<input type="text" autocorrect="off" /> <!-- Disables autocorrect --> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment