Style textTransform Property
Style textTransform Property
The textTransform property is used to either set or return the capitalization of a text. It is used for converting text to uppercase or lowercase.
Syntax:-
Its syntax is:- object.style.textTransform OR object.style.textTransform = none | capitalize | uppercase | lowercase | initial | inherit
Return:-
Its return is:- string having transformation of the text in the element
Further Explanation:-
Value | Description |
---|---|
none | No characters are transformed. |
capitalize | The first character of each word is transformed to uppercase. |
uppercase | All characters are transformed to uppercase. |
lowercase | All characters are transformed to lowercase. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |