Copyright © tutorialspoint.com
The text-transform property changes the capitalization of text within an element, or else directs the user agent to leave the capitalization "as is."
All the HTML elements.
object.style.textTransform="uppercase"; |
Following is the example which demonstrates how to set the cases for a text using text-transform property.
<p style="text-transform:capitalize;"> This will be capitalized </p> <p style="text-transform:uppercase;"> This will be in uppercase </p> <p style="text-transform:lowercase;"> This will be in lowercase </p> |
This will produce following result:
This will be capitalized This will be in uppercase This will be in lowercase |
To Become more comfortable - Do Online Practice
Copyright © tutorialspoint.com