Text layout--fonts
We can use CSS styles to set style attributes such as font, font size, color, and so on for text in a Web page. Let's take a look at an example where the following code is implemented: set the font for text in a Web page to Arial.
Body{font-family: "The song Body";}
Be careful not to set fonts that are not commonly used, because the default font is displayed if the font you set is not installed on the user's local computer. (because the user can see whether the font style you set depends on whether the font you set is installed on the user's local computer.) )
Now General page likes to set "Microsoft Ya Black", the following code:
body{font-family: "Microsoft Yahei";}
Or
Body{font-family: "Microsoft Jas Black";}
Note: The first method is better compatible than the second method.
Because this font is beautiful and can be displayed in the client security (the user is generally installed by default).
Web Front end Development Basics Lesson four (CSS text and paragraph layout)