css text-transform property
Translation results:
text
English[tekst] American[tɛkst]
n. Text, original text; text, textbook; theme; version
v .Send a text message
transform
UK[trænsˈfɔ:m] US[trænsˈfɔ:rm]
vt.Transform; change; change
vi.Change
n.[number] transformation formula
css text-transform propertysyntax
Function:The text-transform attribute controls the case of text.
Description: This attribute will change 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 it is not clearly defined how to determine which letters are capitalized, it is up to the user agent to recognize the individual "words".
Note: Any version of Internet Explorer (including IE8) does not support the attribute value "inherit".
css text-transform propertyexample
<html> <head> <style type="text/css"> h1 {text-transform: uppercase} p.uppercase {text-transform: uppercase} p.lowercase {text-transform: lowercase} p.capitalize {text-transform: capitalize} </style> </head> <body> <h1>This Is An H1 Element</h1> <p class="uppercase">This is some text in a paragraph.</p> <p class="lowercase">This is some text in a paragraph.</p> <p class="capitalize">This is some text in a paragraph.</p> </body> </html>
Click the "Run instance" button to view the online instance