What is the use of the font-family attribute in css
Editor to share with you what is the use of the font-family attribute in css, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Css font-family attribute
In CSS, there are two types of font family names:
Common font family-A combination of font systems with a similar appearance (such as "Serif" or "Monospace")
Specific font family-A specific font family (such as "Times" or "Courier")
The font-family property sets the font family of the text.
The font-family property should set several font names as a "backup" mechanism, and if the browser does not support the first font, it will try the next font.
Note: if the name of the font family is more than one word, it must be in quotation marks, such as Font Family: "Arial".
The above is all the content of the article "what is the use of font-family attributes in css". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!