text transform capitalize only first letter 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);