CSS set font style

4 months ago from

Font family: font type (subordinate, Arial, New Roman,...)

The font type setting depends on the font library installed in the current operating system,

If the set font type can be found in the system, enable the font

If the set font type cannot be found in the system, the default font is used

If the font type name contains spaces, the font name needs to be enclosed in quotation marks, and Chinese characters are generally enclosed in quotation marks

Font size: font size

Units that can be set: by percentage, by predefined keywords (smaller, larger,...), cm, mm, inch, em

Font style: font style. Generally, it only distinguishes between normal and inclined

Font variant: set whether letters are capitalized