font weight and bolder : font weight « CSS « HTML / CSS






font weight and bolder

  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <title></title>
        <style type='text/css'>
            body {
                font-family: monospace;
            }
            div {
                font-weight: bolder;
            }
        </style>
    </head>
  <body>
      This font is normal.
      <div>
          This font is bolder than the font for the &lt;body&gt; element.
      </div>
  </body>
</html>

   
    
  








Related examples in the same category

1.'font-weight' Example
2.font-weight: lighter
3.font-weight: bolder
4.font-weight by number from 100 to 900
5.font-weight: normal, bold, bolder, lighter
6.font weight for p
7.font weight
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