The iPhone selects the Shift key while focusing on the HTML input field. How to disable this?

When I focus on the input field on the iPhone, the Shift key is turned on to make sure that the input starts in upper case. Is there a way to disable this feature and not have the Shift key while focusing on the field?

I understand why this might be good in some cases, but in my case it’s a username or email field, most of which do not start with an uppercase letter.

Update: . The answer will lead me to the Safari Web Content Guide page , which I will more often link to now.

+5
source share
2 answers

You can solve this problem by setting autocapitalize as off

<input type="text" name="test1" autocapitalize="off"/>

and also set the autocorrect attribute of your text field to off to disable the auto-correction feature.

<input type="text" name="test1" autocorrect="off"/>
+5
source

There is a custom attribute for this: autocapitalize (on / off)

<input type="email" name="username" autocapitalize="off">

Please note that this is not a W3C standard and will result in invalid code.

+2
source

All Articles