convert first letter to uppercase in html code example Example: How do you make each word in a text start with a capital letter? Click to copyh1 { text-transform: capitalize; }