-
The
text-transform
CSS property specifies how to capitalize an element's text -
It can be used to make text appear in
all-uppercase
orall-lowercase
, or with each word capitalized
text-transform
CSS property specifies how to capitalize an element's
text
all-uppercase
or all-lowercase
, or with each word capitalized
capitalize
uppercase
uppercase
lowercase
none
this is a sentence
this sentence is capitialized
this sentence is uppercase
THIS SENTENCE IS LOWERCASE
.capitalize { text-transform: capitalize; } .uppercase { text-transform: uppercase; } .lowercase { text-transform: lowercase; }
<ol> <li> <p>this is a sentence</p> </li> <li> <p class="capitalize">this sentence is capitialized</p> </li> <li> <p class="uppercase">this sentence is uppercase</p> </li> <li> <p class="lowercase">THIS SENTENCE IS LOWERCASE</p> </li> </ol>