Properties
CSS
text-transform
The text-transform property specifies capitalization effects of an element's text.
text-transform: capitalize | uppercase | lowercase | none | inherit
| Initial: | none |
| Applies To: | all elements |
| Inherited: | yes |
| Percentages: | NA |
| Media: | visual |
Values
text-transform: value;
| Value: | Description: |
| capitalize | First character of each word in uppercase, other characters are unaffected |
| inherit | Takes the same computed value as the property for the element's parent |
| lowercase | All characters of each word in lowercase |
| none | No capitalization effects |
| uppercase | All characters of each word in uppercase |
DOM
[window.]document.getElementById("element-id").style.textTransform = "text-transform";
