Convert text to uppercase with CSS


To convert text to uppercase with CSS, use the text-transform property with value uppercase.

Example

You can try to run the following code to convert text to uppercase:

<html>
   <head>
   </head>
   <body>
      <p>Normal Text</p>
      <p style = "text-transform:uppercase;">
         Normal Text! This will be in uppercase!
      </p>
   </body>
</html>

Updated on: 31-Jan-2020

2K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements