font

英[fɒnt] 美[fɑ:nt]

n. Font; font; baptistery (located in a church, often made of stone ); (same font and size) a pair of typefaces

Plural: fonts

weight

英[weɪt] 美[wet]

n. Weight, weight; heavy burden, heavy responsibility; important; [unity] power, increased value, weight

vt. Add weight to, make heavier; burden, burden or oppress; [unity] ] makes weighting, adding the emphasis value to

Third person singular: weights Plural: weights Present participle: weighting Past tense: weighted

css font-weight property syntax

Function:Set the thickness of the text.

Description: This attribute is used to set the bold font used in the text of the display element. The numeric value 400 is equivalent to the keyword normal, and 700 is equivalent to bold. The font bold for each numeric value must be at least as thin as the next smallest number, and at least as thick as the next largest number.

Note: All major browsers support the font-weight attribute.

css font-weight property example

<html>
<head>
<style type="text/css">
p.normal {font-weight: normal}
p.thick {font-weight: bold}
p.thicker {font-weight: 900}
</style>
</head>

<body>
<p class="normal">php中文网</p>

<p class="thick">php视频教程</p>

<p class="thicker">php程序员词典</p>
</body>

</html>

Run instance »

Click the "Run instance" button to view the online instance