Languages
[Edit]
EN

CSS - how to make first letter of string uppercase?

9 points
Created by:
Root-ssh
116170

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>

 

CSS

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join