How to set the cases for a text in CSS?

JavascriptWeb DevelopmentFront End Scripts

Use the text-transform property to set the cases for a text. Possible values are none, capitalize, uppercase, lowercase.

Example

You can try to run the following code to set the cases for a text:

<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>
raja
Published on 13-Apr-2018 12:08:12

Advertisements