CSS Text Transformation


Text Transformation

The text-transform property is used to specify uppercase and lowercase letters in a text.

It can be used to turn everything into uppercase or lowercase letters, or capitalize the first letter of each word:

Example

p.uppercase {
  text-transform: uppercase;
}

p.lowercase {
  text-transform: lowercase;
}

p.capitalize {
  text-transform: capitalize;
}
Try it Yourself »

The CSS Text Transformation Property

Property Description
text-transform Controls the capitalization of text

Copyright 1999-2023 by Refsnes Data. All Rights Reserved.