virtualkeyboardpolicy
virtualkeyboardpolicy attribute
The virtualkeyboardpolicy
attribute regulates the behavior of the virtual keyboard for input fields, determining whether it should be displayed or hidden for specific elements.
Syntax
<input virtualkeyboardpolicy="value">
Usage Example
<input virtualkeyboardpolicy="manual" type="text" name="example">
Values
- auto: The default setting; the virtual keyboard displays automatically when needed.
- manual: The virtual keyboard is controlled manually and may not appear by default.
See also
- All global attribute.
HTMLElement.contentEditable
andHTMLElement.isContentEditable
Conclusion
The virtualkeyboardpolicy
attribute controls when the virtual keyboard appears on mobile devices for input fields. It offers two values: auto
for automatic display and manual
for manual control. This attribute is not widely supported and is mainly used in specialized environments.
step
The step attribute in HTML specifies the allowed intervals between valid values for input fields like numbers or dates, helping to ensure user inputs follow a defined increment.
writing-suggestions
The HTML writing-suggestions attribute advises browsers on the types of writing assistance to offer, like autocorrect or spellcheck, enhancing text input accuracy and user experience.