diff options
Diffstat (limited to 'devdocs/html/global_attributes%2Fautocapitalize.html')
| -rw-r--r-- | devdocs/html/global_attributes%2Fautocapitalize.html | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/devdocs/html/global_attributes%2Fautocapitalize.html b/devdocs/html/global_attributes%2Fautocapitalize.html new file mode 100644 index 00000000..6bc875f8 --- /dev/null +++ b/devdocs/html/global_attributes%2Fautocapitalize.html @@ -0,0 +1,57 @@ +<header><h1>autocapitalize</h1></header><div class="section-content"> +<p>The <code>autocapitalize</code> <a href="../global_attributes">global attribute</a> is an <a href="https://developer.mozilla.org/en-US/docs/Glossary/Enumerated">enumerated</a> attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user.</p> <p>The attribute must take one of the following values:</p> <ul> <li> +<code>off</code> or <code>none</code>: No autocapitalization is applied (all letters default to lowercase)</li> <li> +<code>on</code> or <code>sentences</code>: The first letter of each sentence defaults to a capital letter; all other letters default to lowercase</li> <li> +<code>words</code>: The first letter of each word defaults to a capital letter; all other letters default to lowercase</li> <li> +<code>characters</code>: All letters should default to uppercase</li> </ul> <p>The <code>autocapitalize</code> attribute doesn't affect behavior when typing on a physical keyboard. Instead, it affects the behavior of other input mechanisms, such as virtual keyboards on mobile devices and voice input. The behavior of such mechanisms is that they often assist users by automatically capitalizing the first letter of sentences. The <code>autocapitalize</code> attribute enables authors to override that behavior per-element.</p> <p>The <code>autocapitalize</code> attribute never causes autocapitalization to be enabled for an <a href="../element/input"><code><input></code></a> element with a <a href="../element/input#type"><code>type</code></a> attribute whose value is <code>url</code>, <code>email</code>, or <code>password</code>.</p> +</div> +<h2 id="specifications">Specifications</h2> +<div class="_table"><table class="standard-table"> +<thead><tr><th scope="col">Specification</th></tr></thead> +<tbody><tr><td><a href="https://html.spec.whatwg.org/multipage/interaction.html#attr-autocapitalize">HTML Standard <br><small># attr-autocapitalize</small></a></td></tr></tbody> +</table></div> +<h2 id="browser_compatibility">Browser compatibility</h2> +<div class="_table"><table> +<thead> +<tr id="bct-browser-type"> +<th></th> +<th colspan="6">Desktop</th> +<th colspan="6">Mobile</th> +</tr> +<tr id="bct-browsers"> +<th></th> +<th>Chrome</th> +<th>Edge</th> +<th>Firefox</th> +<th>Internet Explorer</th> +<th>Opera</th> +<th>Safari</th> +<th>WebView Android</th> +<th>Chrome Android</th> +<th>Firefox for Android</th> +<th>Opera Android</th> +<th>Safari on IOS</th> +<th>Samsung Internet</th> +</tr> +</thead> +<tbody><tr> +<th><code>autocapitalize</code></th> +<td class="bc-supports-yes">43</td> +<td class="bc-supports-yes">79</td> +<td class="bc-supports-yes">111</td> +<td class="bc-supports-no">No</td> +<td class="bc-supports-yes">30</td> +<td class="bc-supports-no">No</td> +<td class="bc-supports-yes">43</td> +<td class="bc-supports-yes">43</td> +<td class="bc-supports-yes">111</td> +<td class="bc-supports-yes">30</td> +<td class="bc-supports-yes">5</td> +<td class="bc-supports-yes">4.0</td> +</tr></tbody> +</table></div><div class="_attribution"> + <p class="_attribution-p"> + © 2005–2023 MDN contributors.<br>Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.<br> + <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autocapitalize" class="_attribution-link">https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autocapitalize</a> + </p> +</div> |
