Text Transform in CSS
The text-transform Property
The text-transform CSS property specifies how to transform an element's text. For example, it can be used to make text appear with each word capitalized or it can be used to make all characters uppercases or lowercase depending on different scenarios.
Syntax:-
Its syntax is:-
< style >
element{
text-transform: none| capitalize| uppercase| lowercase| initial| inherit;
}
< /style >
Further Explanation:-
Value | Description |
---|---|
none | No capitalization. |
capitalize | Transforms the first character of each word to uppercase. |
uppercase | Transforms all characters to uppercase. |
lowercase | Transforms all characters to lowercase. |
initial | Sets this property to its default value. |
inherit | Inherits this property from its parent element. |