Capitalize the First Letter of Every Word with CSS

Use the text-transform property with ‘capitalize’ value to capitalize the first letter of the words in an element.,

For example:

div { text-transform: capitalize; }
this is a statement that requires first letter to be capitalized

would become:

This Is A Statement That Requires First Letter To Be Capitalized
Share the Post:
Share on facebook
Share on twitter
Share on linkedin

More From DevX