css set first letter uppercase code example Example: css capitalize first letter &::first-letter { text-transform: capitalize; }