How to write the code with lowercase and uppercase in css
This article will explain in detail how to write lowercase and uppercase code in css. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
In css, the lowercase code is "text-transform:uppercase"; the function of the "text-transform" attribute is to control the uppercase style of the text of the element, and when the value of the attribute is "uppercase", the lowercase style of the text within the element becomes uppercase.
The operating environment of this tutorial: windows10 system, CSS3&&HTML5 version, Dell G3 computer.
In css, to achieve the effect of lowercase capitalization, you can use the text-transform property.
This attribute changes the case of letters in the element, regardless of the case of the text in the source document. If the value is capitalize, some letters are capitalized, but there is no clear definition of how to determine which letters should be capitalized, depending on how the user agent recognizes each "word."
The function of the text-transform attribute is to control the case of the text, and when the value of the attribute is uppercase, there are only uppercase letters in the defined text.
The syntax is:
Element {text-transform:uppercase;}
Examples are as follows:
H2 {text-transform: uppercase;} p {text-transform: uppercase;} abcdefg
Qwerzxcv
Output result:
This is the end of this article on "how to write small and medium-sized code in css". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.