How to change font style with html
Most people do not understand the knowledge points of this article "html how to change 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 "how to change font style in html" article.
Specific examples are as follows:
Change font style to Song style in html
In html, the H2 tag sets the font using the "font-family" attribute, and the font style of H2 is set to "font-family:' Arial", so that the font displayed on the H2 tag is Arial.
Code:
H2 {font-family: Arial; font-weight:normal;} Test fonts
(note: when the H2 label font does not set a new font, the default font is the Song style, so if you need to set the H2 font to the Song style, it does not need to be modified, the original default is the Song style. )
Related knowledge points:
H1 tag other Font style Properties
1. Font shorthand attribute, which sets all properties for fonts in a declaration.
2. Font-size: set the font size.
3. Font-size-adjust: intelligently scale the replacement font when the preferred font is not available. (CSS2.1 has deleted this attribute. )
4. Font-stretch: stretch the font horizontally. (CSS2.1 has deleted this attribute. )
5. Font-style: set font style. Font-variant displays text in small uppercase fonts or normal fonts.
6. Font-weight: sets the font thickness.
The above is about the content of this article on "how to change the font style 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 follow the industry information channel.