-
-
Save kublaj/cef37b9d9b59e7d4f9b53df28a5c386e to your computer and use it in GitHub Desktop.
Describes HTML5 Attributes for Forms on Mobile Devices
This file contains hidden or 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