Transform text in different elements:
The text-transform property controls the capitalization of text.
| Default value: | none |
|---|---|
| Inherited: | yes |
| Version: | CSS1 |
| JavaScript syntax: | object.style.textTransform="uppercase" |
![]()
The text-transform property is supported in all major browsers.
Note: The value "inherit" is not supported in IE7 and earlier. IE8 requires a !DOCTYPE. IE9 supports "inherit".
| Value | Description | Play it |
|---|---|---|
| none | No capitalization. The text renders as it is. This is default | Play it » |
| capitalize | Transforms the first character of each word to uppercase | Play it » |
| uppercase | Transforms all characters to uppercase | Play it » |
| lowercase | Transforms all characters to lowercase | Play it » |
| inherit | Specifies that the value of the text-transform property should be inherited from the parent element |
CSS tutorial: CSS Text
HTML DOM reference: textTransform property
Your message has been sent to W3Schools.