B.116. text-transform

This property causes the text of selected element(s) to be case-modified for display. Text can be displayed capitalized, uppercase, or lowercase.

Inherited: Yes

B.116.1. Value

This property may be assigned any one of the following constant values:

  • capitalize: The first letter of each word is displayed in uppercase.

  • lowercase: All characters in the text are displayed in lowercase.

  • uppercase: All characters in the text are displayed in uppercase.

  • none: The text is displayed unmodified.

Initial value: none

B.116.2. Compatibility

CSS Version: 1

This property is supported by all CSS-compatible browsers.

B.116.3. Example

This style rule displays all headings in capitalized text (the first letter of each word is capitalized): ...

Get HTML Utopia: Designing Without Tables Using CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.