Languages
[Edit]
EN

CSS - make first letter of string uppercase

9 points
Created by:
Root-ssh
177650

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

Practical 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>

 

Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

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