CSS text-transform

The CSS text-transform property is used to specify how the text should be transformed in terms of capitalization. It allows you to control the capitalization of text in an HTML element. There are five values that can be used with the text-transform property:

Now, let's see some examples of how to use the text-transform property in CSS:

Result:

hello world


hello world

In the above example, the text "hello world" is transformed so that the first letter of each word is capitalized.

Result:

hello world


hello world

In this example, the text "hello world" is transformed to all uppercase letters.

Result:

HELLO WORLD


HELLO WORLD

Here, the text "HELLO WORLD" is transformed to all lowercase letters.

Feel free to experiment with the text-transform property in your own CSS stylesheets to see how it can affect the appearance of text on your web page!