CSS – Set First Character in Each Word to Uppercase

To set first character in each word of text to uppercase in HTML Element(s) using CSS, assign text-transform CSS property with the value capitalize for the HTML Element(s).

text-transform: capitalize;

Example

ADVERTISEMENT

Capitalize text in other HTML Elements.

Example

Conclusion

In this CSS Tutorial, we learned how to set capitalize each word in the text of HTML Element(s) using CSS.