I was working on a project, and during a Pull Request review someone had written a TypeScript function to capitalize the first letter of each word. I said "It looks good to me" but one of my colleagues said "Hey, why don't we use CSS for this."
"CSS can do this?" Said Jeffry, blinking surprised.
It can, and it is super simple to do. CSS provides a text-transform property.
Try this text:
<div style="text-transform: capitalize;">the quick brown fox jumped over the lazy dogs</div>
Sometimes I'm more surprised by the simple stuff I don't know than the complicated stuff.