Languages
[Edit]
EN

CSS - how to make first letter of string uppercase?

9 points
Created by:
Root-ssh
68980

Using CSS it is possible to capitalize letters in following way.

1. test-transform style example

// ONLINE-RUNNER:browser;

<!doctype html>
<html lang="en">
<head>
  <style>

    p.capitalize::first-letter {
        text-transform: capitalize;
    }

  </style>
</head>
<body>
  <p class="capitalize">this text has been written with small letters only...</p>
</body>
</html>

 

Native Advertising
50 000 ad impressions - 449$
🚀
Get your tech brand or product in front of software developers.
For more information contact us:
Red dot
Dirask - friendly IT community for everyone.

❤️💻 🙂

Join