CSS text-transform attributes

Source: Internet
Author: User
ArticleDirectory
    • Description
    • Script Syntax:
Definition

Text-TransformControls the letters in the element.

Inheritance:Yes

Description

This attribute changes the uppercase and lowercase letters of an element regardless of the text in the source document. If the value is capitalize, uppercase letters are required, but there is no explicit definition of which letters should be capitalized, depending on how the user agent identifies each "word ".

Javascript syntax

CSS attributes can also be dynamically changed through a piece of JavaScript.

Script Syntax:
 
Object. style. texttransform = "capitalize"

In our HTML Dom tutorial, you can find more details about the texttransform attribute.

In our HTML Dom tutorial, you can also find the complete style object reference manual.

Example
 
P {Text-Transform: Uppercase}
Possible Value
Value Description
None Default value. Defines standard text with lower-case letters and upper-case letters.
Capitalize Each word in the text starts with an uppercase letter.
Uppercase Only uppercase letters are defined.
Lowercase It defines no upper-case letters and only lower-case letters.
Tiy instance
Control letters in text
This example shows how to control letters in text.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.