![]() ![]() This property accepts various values, including a pixel size, points, percentage value, and more. To change the size of the font, you can use the font-size property. The font-family property enables you to change the font. It allows you to set the font family - often simply referred to as "font" (eg, "How do I change the font?"). The font-family property is probably the most common font property. If you only need to set one or two font properties, you might prefer to use the explicit font property, rather than the shorthand property as outlined above. Sample text to demonstrate HTML font code. The font property enables you to set the following properties: font-style, font-variant, font-weight, font-size, line-height, and font-family. The font property is shorthand code that allows you to set multiple font properties in one go. The following font codes contain the word word "font" in their name eg, font-size, font-stretch etc.Īlso see text codes, which are the properties that contain "text" in their name eg, text-transform, text-align etc. ![]()
0 Comments
Leave a Reply. |