If you want to accept only uppercase input in an HTML element such as a input text or a text area, even if the user enters the text in lowercase you want it to be converted and captured in all capital letters you can do so by adding the attribute text-transform: uppercase to the style of the the element,
The property text-transformation is available since CSS1 and support all browsers: Chrome, Internet Explorer, Edge, Safari and Firefox.
Syntax: text-transform: uppercase
As you can see in the below demo, even when I do not press shift key or caps button on, all the characters are force captured in uppercase in the text field.

HTML Force Uppercase Example
<!DOCTYPE html>
<html>
<body>
<input type="text "id="message" style="text-transform: uppercase" />
</body>
</html>
This will work with textarea as well,
<textarea style="text-transform: uppercase"></textarea>
More Posts related to Html,
- HTML5 HELLO WORLD Example
- All directional arrows codes for HTML
- Adding Sub Headings to Bootstrap Header tags
- Create HTML button that looks like a href hyperlink
- 70+ HTTP Error Codes CheatSheet
- Comprehensive 256 Ascii code table with Html Hex IBM Microsoft Key
- How to set background color in HTML page?
- Obsolete marquee element alternatives html5
- Base 64 Index, Character and Binary Table
- Get HTML table td, tr or th inner content value with id or name attribute
- Align html element at the center of page vertically and horizontally
- How to add multiple spaces between html page text
- The author stylesheet specified in tag script is too long - document contains 21759 bytes whereas the limit is 10000 bytes
- How to pretty print HTML using Java Code
- W3 HTML validator warning Unable to Determine Parse Mode
- Hyperlink in html (anchor tag) without a underline
- reCaptcha Verification expired. Check the checkbox again
- Auto Refresh Webpage after every x Second or Minute using Meta Tag?
- Chessboard with pieces using pure HTML and CSS
- Default speed of Marquee tag : SCROLLAMOUNT
- Fibonacci series from 1 to 500 table
- 9 Border to DIV Element in HTML Examples
- How to remove old 404 pages ulrs from Google crawler
- Simple Crossword Puzzle example using Pure HTML, CSS and JavaScript
- How to make a div tag clickable
More Posts:
- How to save All Files at once in Notepad++ - NotepadPlusPlus
- Hide Scrollbar from Android Views - Android
- Microsoft Sign-in Error Code: 50058 (Request Id, Correlation Id and Timestamp) - Microsoft
- Android : Connection with adb was interrupted 0 attempts have been made to reconnect - Android
- How to Compare Strings in Bash Script - Bash
- Fix: Spring Boot REST HTTP Status 415 - Unsupported Media Type Error - Java
- Access Windows share folder in Ubuntu Device in Network - Ubuntu
- Change Android Toast background color - Android