159

By default, iOS’s keyboard sets the first letter in text form fields (including type=email) to uppercase. (At least prior to iOS 5.)

Is there any way to disable the autocapitalization?

0

2 Answers 2

335

Since iOS 5, type="email" has auto-capitalization disabled automatically, so you simply need:

<input type="email">

For other input types, there are attributes available that do what they say:

<input type="text" autocorrect="off" autocapitalize="none">

If for some reason you want to support iOS prior to version 5, use this for type="email":

<input type="email" autocorrect="off" autocapitalize="none">

More information:

9
  • 6
    I think this is a bit outdated now. When I do type="email" on iOS 5, autocapitalize is disabled. Mar 2, 2012 at 22:02
  • @AbhiBeckert Can confirm. 2014 and we can hardly remember iOS 6. Jun 18, 2014 at 21:06
  • 29
    Use autocapitalize="none" instead of autocapitalize="off" because "off" is deprecated for autocapitalize. See official documentation.
    – Pang
    Sep 22, 2014 at 4:41
  • Any suggestions for doing this on Android devices? Feb 9, 2016 at 7:39
  • I love how fast one finds 'the answer' online. thanks @thirtydot! Oct 28, 2016 at 8:39
8

Just as a heads up, if you're looking at this example and you're using React Native, you'll want to use those props as camelcase.

autoCapitalize

and

autoCorrect

This confused me a bit until I looked at the React Native Documentation for Text Inputs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.