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: 2020-01-31T06:24:09+05:30

2K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements