Introduction and example of Fontvariant in CSS properties

Source: Internet
Author: User
Tags uppercase letter
The Font-variant property sets the font display text for small caps, which means that all lowercase letters are converted to uppercase, but all letters that use a small uppercase font have a smaller font size than the rest of the text.
The Value small-caps browser displays the font of small caps.

Grammar:

Font-variant:normal | Small-caps

Parameters:
Normal: Regular font
Small-caps: Small Caps font
Description
Sets or retrieves whether the text in the object is a small, uppercase letter.
The corresponding script attribute is fontvariant. Please refer to the other bibliography I have written.

The difference between Text-transform and font-variant of Text-transform

Both Text-transform and font-variant can convert the English text to uppercase and lowercase. But Font-variant's only role is to convert the English text into "small" uppercase text, noting that this is "small". In general, the Font-variant attribute is rarely used, and for the case conversion of English, we use the Text-transform property instead of the Font-variant property.

An instance of the Font-variant property

<! DOCTYPE HTML PUBLIC "-//w3c//dtd XHTML 1.1//en" "Www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" >
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.