Text Transformation Explain
The text-transform
property is used to specify uppercase and lowercase letters in a text.
It can be used to turn everything into uppercase or lowercase letters, or capitalize the first letter of each word.
text-transform
property is used to specify uppercase and lowercase letters in a text.Html Code:
<!DOCTYPE html>
<html>
<head>
<style>
p.uppercase {
text-transform: uppercase;
}
p.lowercase {
text-transform: lowercase;
}
p.capitalize {
text-transform: capitalize;
}
</style>
</head>
<body>
<p class="uppercase">This is some text.</p>
<p class="lowercase">This is some text.</p>
<p class="capitalize">This is some text.</p>
</body>
</html>
Html Code Result:
THIS IS SOME TEXT.
this is some text.
This Is Some Text.
THIS IS SOME TEXT.
this is some text.
This Is Some Text.
Post a Comment