Skip to content

Instantly share code, notes, and snippets.

@jimmyandrade
Created August 12, 2020 14:14
Show Gist options
  • Save jimmyandrade/095a95b32e9b80a5505ab048ca95b89b to your computer and use it in GitHub Desktop.
Save jimmyandrade/095a95b32e9b80a5505ab048ca95b89b to your computer and use it in GitHub Desktop.

Mapping input types from iOS to HTML

none

<input />

text

<input type="text" />

textCapCharacters

<input type="text" autoCapitalize="characters" />

textCapWords

<input type="text" autoCapitalize="words" />

textCapSentences

<input type="text" autoCapitalize="sentences" />

textAutoCorrect

<input type="text" autoCorrect="on" />

textAutoComplete

<input type="text" autoComplete="on" />

textMultiline

<textarea />

textNoSuggestions

<input type="text" autoComplete="off" />

textUri

<input type="url" inputMode="url" />

textEmailAddress

<input type="email" inputMode="email" />

textEmailSubject

<input type="text" autoCapitalize="sentences" maxLength="78" required="required" />

textShortMessage

<input type="text" inputMode="latin-prose" />

textLongMessage

<textarea inputMode="latin-prose" />

textPersonName

<input type="text" autoCapitalize="words" autoComplete="name" inputMode="latin-name" />

textPostalAddress

<input type="text" autoCapitalize="sentences" autoComplete="street-address" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment