CSS basics
CSS font-weight sets the font weight
There are many ways to set the font bold in HTML . For example, use the <b> or <strong> tag to mark the text or symbols to be bold. In CSS , you can set the font weight through the font-weight syntax, but The most commonly used mode is only general or bold.
Grammar example
font-weight:bold;
In the example, the value we set is bold, which is bold. Here are some commonly used values.
- normal-This is the default value, you don't need to set it.
- bold-This is the bold font.
- bolder-A bolder font, but it doesn't seem to be different from bold.
- lighter-thin body, but no difference from normal.
- Number-You can set 100, 200, 300, 400, 500, 600, 700, 800, 900.
Post a Comment
0 Comments