text-transform

The text-transform property specifies capitalization effects of an element's text.

Syntax

text-transform: capitalize | uppercase | lowercase | none | inherit
Initial: none
Applies To: all elements
Inherited: yes
Percentages: NA
Media: visual

Values

text-transform: value
Value Description
capitalize First character of each word in uppercase, other characters are unaffected
lowercase All characters of each word in lowercase
none No capitalization effects
uppercase All characters of each word in uppercase

DOM

[window.]document.getElementById("element-id").style.textTransform = "text-transform";

Example | capitalize

Example | lowercase

Example | none

Example | uppercase

Example | DOM

External

W3C Cascading Style Sheets, level 1

W3C Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification