CSS text-transform Property

Clash Royale CLAN TAG#URR8PPP <!--
main_leaderboard, all: [728,90][970,90][320,50][468,60]-->
CSS text-transform Property
❮
Reference
❯
Example
Transform text in different <div> elements:
div.a
text-transform: uppercase;
div.b
text-transform: lowercase;
div.c
text-transform: capitalize;
Try it Yourself »
Definition and Usage
The text-transform property controls the capitalization of text.
| Default value: | none |
|---|---|
| Inherited: | yes |
| Version: | CSS1 |
| JavaScript syntax: | object.style.textTransform="uppercase" Try it |
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
| Property | |||||
|---|---|---|---|---|---|
| text-transform | 1.0 | 4.0 | 1.0 | 1.0 | 7.0 |
<!--
mid_content, all: [300,250][336,280][728,90][970,250][970,90][320,50][468,60]-->
CSS Syntax
text-transform: none|capitalize|uppercase|lowercase|initial|inherit;Property Values
| 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 » |
| initial | Sets this property to its default value. Read about initial | Play it » |
| inherit | Inherits this property from its parent element. Read about inherit |
Related Pages
CSS tutorial: CSS Text
HTML DOM reference: textTransform property
❮
Reference
❯