How to set default keyboard layout for input boxes, for example when the page gets loaded, we can type in an input text with another keyboard language else than English?
Using the lang attribute (and xml:lang in XHTML) is the right way.
If the type attribute is not specified, the default type is "text".
Click Start > Control Panel. Under Clock, Language, and Region, click Change keyboards or other input methods. Note: If you don't see Clock, Language, and Region, click Category in the View by menu at the top of the page. In the Region and Language dialog box, on the Keyboards and Languages tab, click Change keyboards.
I'd think about the lang
attribute. But this is meta-information, I'm really not sure the browser will do anything with it. Never tried it myself.
<input lang="is" ...>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With