Specifying Capitalization - HTML

Styles can also be used to control the capitalization of text. The text-transform property can be set to four different values, as shown in the following code:

The text-transform property allows you to influence the capitalization of elements.

The text-transform property allows you to influence the capitalization of elements.

Note that there are some rules as to what text-transform will and won’t affect. For example, the capitalize value ensures that each word starts with a capital letter, but it doesn’t change the capitalization of the rest of the word. Setting the property to normal will not affect the capitalization of the element.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

HTML Topics