<style>
.capitalize{
text-transform:lowercase;
display: inline-block;
}
.capitalize::first-letter {
text-transform:capitalize;
}
</style>
<span class = "capitalize">TESTING</span>
Make sure to add display:inline-block because the element span does not work with :first-letter unlike with p,div,tables, etc. If you are using an element which has block by default, then you don't need to put a display:inline-block just like the code below.
<style>
.capitalize{
text-transform:lowercase;
}
.capitalize::first-letter {
text-transform:capitalize;
}
</style>
<div class = "capitalize">TESTING</div>
Cheers,