16.5 Capitalization: the ’text-transform’ property
’text-transform’
Value: capitalize | uppercase | lowercase | none | inherit
Initial: none
Applies to: all elements
Inherited: yes
Percentages: N/A
Media: visual
Computed value: as specified
This property controls capitalization effects of an element’s text. Values have the
following meanings:
capitalize
Puts the first character of each word in uppercase; other characters are unaffected.
uppercase
Puts all characters of each word in uppercase.
lowercase
Puts all characters of each word in lowercase.
none
No capitalization effects.
The actual transformation in each case is written language dependent. See RFC
3066 ([RFC3066]) for ways to find the language of an element.
Conforming user agents [p. 37] may consider the value of ’text-transform’ to be
’none’ for writing scripts for which there is no transform.
Example(s):
In this example, all text in an H1 element is transformed to uppercase text.
h1 { text-transform: uppercase }