In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Most people do not understand the knowledge points of this article "how to use the font-family attribute of HTML", so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to use the font-family attribute of HTML" article.
The font-family attribute is used to set fonts. The commonly used fonts in web pages are Song style, Microsoft Yahei, boldface, and so on. For example, to set the font of all paragraph text in a web page to Microsoft Yahei, you can use the following CSS style code:
P {font-family: "Microsoft Acer";}
You can specify multiple fonts at the same time, separated by commas, indicating that if the browser does not support the first font, it will try the next font until the appropriate font is found.
2 common skills of font size
1 14px is now widely used in web pages.
Try to use even-numbered numeric font sizes. Older browsers such as ie6 support odd numbers and will have bug.
3 the various fonts must be separated by commas in English.
4 Chinese fonts need quotation marks in English, while English fonts generally do not need quotation marks. When you need to set an English font, the English font name must precede the Chinese font name.
5 if the font name contains symbols such as spaces, #, $, etc., the font must include single or double quotes in English, such as font- family: "Times New Roman"
6 try to use the default font of the system to ensure that it can be displayed correctly in any user's browser.
What are the characteristics of html 1, simplicity: hypertext markup language version upgrade using superset mode, thus more flexible and convenient, suitable for beginner front-end developers to use.
2. Extensibility: the wide application of hypertext markup language brings the requirements of strengthening functions and increasing identifiers. Hypertext markup language adopts the way of subclass elements to ensure the expansion of the system.
3. Platform independence: hypertext markup language can be used on a wide range of platforms, which is one of the reasons why the World wide Web is so popular.
4. Versatility: HTML is the universal language of the network, which allows web producers to create complex pages that combine text and pictures, which can be viewed by anyone else on the Internet, no matter what type of computer or browser they are using.
The above is about the content of this article on "how to use the font-family attribute of HTML". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.