Format String First Letter Uppercase Css Code Example
Example 1: css capitalize first letter
&::first-letter {
text-transform: capitalize;
}
Example 2: make first letter uppercase
const publication = "freeCodeCamp";
publication[0].toUpperCase() + publication.substring(1);
Comments
Post a Comment