Get the App
SLTechnology News&Howtos  ›  Development  › 

How to set font style for HTML

Shulou Source: shulou.com Published: 2022-06-01 13:11:06 09月15日 Update

Most people do not understand the knowledge points of this article "HTML how to set font style", 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 "HTML how to set font style" article.

There are five commonly used font properties for CSS: font-style, font-weight, font-size, font-family, and font.

Font-style: sets italics. Normal is a normal font and italic is set in italics.

P {font-style:italic}

Font-weight: sets the font weight. Normal is normal, bold is bold, and 100900 is the weight.

P {font-weight:bold;} p {font-weight:400;}

Font-size: sets the font size.

P {font-size:24px;}

Font-family: set font style, such as Microsoft Yahi, italics, Arial style

P {font-family: "italics";}

Font: at the same time set the font italics, bold, size, font, each value separated by a space, and must be carried out in strict order.

P {font:italic bold 24px "italics";} above is the content of this article on "how to set font style in 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 follow the industry information channel.

Tags: Font content style italics italics size article knowledge article weight strictly according to between value at the same time most of the Song style that is attributes commonly used more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux macOS Xiaomi Apple Shulou Information