top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

Which property is used to capitalize text or convert text to uppercase or lowercase letters in CSS?

+1 vote
147 views
Which property is used to capitalize text or convert text to uppercase or lowercase letters in CSS?
posted Jun 20, 2017 by Debaprasad Maity

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Example

Transform text in different <p> elements:

p.uppercase {
    text-transform: uppercase;
}

p.lowercase {
    text-transform: lowercase;
}

p.capitalize {
    text-transform: capitalize;
}

CSS Syntax

text-transform: none|capitalize|uppercase|lowercase|initial|inherit;

Property Values

Value Description

none : No capitalization. The text renders as it is. This is default

capitalize : Transforms the first character of each word to uppercase

uppercase : Transforms all characters to uppercase

lowercase : Transforms all characters to lowercase

initial : Sets this property to its default value.

inherit : Inherits this property from its parent element.

answer Jun 22, 2017 by Manikandan J
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...