Capitalize text with CSS



To capitalize text with CSS, use the capitalize property. You can try to run the following code to capitalize text:

<html>
   <head>
   </head>
   <body>
      <p style = "text-transform:capitalize;">
         India
      </p>
   </body>
</html>
Updated on: 2020-01-31T06:22:15+05:30

1K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements