html force uppercase code example

Example 1: html uppercase

<p style="text-transform: uppercase;"> All letters of all words will be in uppercase </p>

Example 2: conveert text to uppercase in input field

<input type="text" class="normal" 
       name="Name" size="20" maxlength="20" 
       style="text-transform:uppercase" />

Example 3: how to make text uppercase html

text-transform: capitalize;

Example 4: input uppercase with css

<input oninput="let p = this.selectionStart; this.value = this.value.toUpperCase();this.setSelectionRange(p, p);" />

Tags:

Html Example