Usage of text-transform property in CSS


The text-transform property is used to capitalize text or convert text to uppercase or lowercase letters.

Example

Possible values are none, capitalize, uppercase, lowercase.

<html>
   <head>
   </head>
   <body>
      <p style = "text-transform:capitalize;">
         This will be capitalized
      </p>

      <p style = "text-transform:uppercase;">
         This will be in uppercase
      </p>

      <p style = "text-transform:lowercase;">
         This will be in lowercase
      </p>
   </body>
</html>

Updated on: 30-Jan-2020

76 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements