top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

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

+1 vote
713 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
...