Menu Home

autocapitalize

osbo.com | HTML | Attributes | autocapitalize

The autocapitalize HTML attribute allows authors to control capitalization.

Useful for voice input or a virtual keyboard, but not a physical keyboard.

Syntax

autocapitalize="value"
Value Description
characters all letters default to uppercase
default user agent and input method determine autocapitalization
none no autocapitalization
off no autocapitalization
on first letter of each sentence defaults to uppercase; all other letters default to lowercase
sentences first letter of each sentence defaults to uppercase; all other letters default to lowercase
words first letter of each word defaults to uppercase; all other letters default to lowercase

Examples

characters

default

none

off

on

sentences

words

Web Hypertext Application Technology Working Group (WHATWG)