CSE 154 Examples

Text Transform Property

The Text Transform property determines the casing of the text we set the property to.

Description

The text-transform property can take in different values.

  • Capitalize - With this property, the first letter of each word is converted to uppercase.
  • Lowercase - All text is converted to lowercase.
  • Uppercase - All text is converted to uppercase.
  • None - No extra/additional casing rules apply to this text.

Syntax :

                  
                      element {
                        text-decoration: uppercase;
                      }

                      p {
                        text-shadow: lowercase;
                      }
                  
                

HTML :

CSS :

Live Preview :