The text-transform property is used to control the capitalization of the text.

The text-transform property contains following information:

  1. value: capitalize, uppercase, lowercase, none or inherit;
  2. initial: none;
  3. applies to: all elements;
  4. inherited: yes;
  5. percentages: N/A;
  6. media: visual;
  7. computed value: as specified.

The value capitalize puts the first character of each word in uppercase while uppercase and lowercase change every letter of each word in uppercase and lowercase respectively.


CSS text-transform property example:


›› go to examples ››