css force all caps code example
Example 1: all text in caps using css
.class_name {
text-transform: none|capitalize|uppercase|lowercase|initial|inherit;
}
Example 2: input uppercase with css
<input oninput="let p = this.selectionStart; this.value = this.value.toUpperCase();this.setSelectionRange(p, p);" />