input uppercase with css

CSS
input { 
    text-transform: uppercase;
}<input oninput="let p = this.selectionStart; this.value = this.value.toUpperCase();this.setSelectionRange(p, p);" />
Source

Also in CSS: