'font-weight' Example : font weight « CSS « HTML / CSS






'font-weight' Example

  
    
<html>
<body>
<div style="font-size:16pt "
     onmouseover="this.style.fontWeight='bold'" 
     onmouseout="this.style.fontWeight='normal'">
     Move the mouse to change the font-weight value.</div>
</body>
</html>

    
      
        
    
  








Related examples in the same category

1.font-weight: lighter
2.font-weight: bolder
3.font-weight by number from 100 to 900
4.font-weight: normal, bold, bolder, lighter
5.font weight for p
6.font weight
7.font weight and bolder
8.font weight lighter
9.font-weight:normal; font-weight:bold; font-weight:lighter; font-weight:bolder;
10.font weight settings
11.font weight normal
12.Set font weight to bold for the first text in paragraph
13.Header text-transform: uppercase;
14.font-weight:900; assigns the constant 900 to font-weight.
15.font weight bolder
16.use the following constants for font-weight: normal, bold, bolder, lighter.
17.Font Weight by number
18.Font weight by value