de | en

CSS font weight & font style

CSS Font-Weight and Font-Style

Description of Font-Weight

The CSS font-weight property is used to define the font-weight (i.e. Bold) of the selected element.

Example Font-Weight

p.normal {
   font-weight: normal;
}
p.bold {
   font-weight: bold;
}
p.lighter {
   font-weight: lighter;
}

Description of Font-Style

The CSS font-style property is used to define the font style (i.e. Italic/Oblique) of the selected element.

Example Font-Style

p.normal {
   font-style: normal;
}
p.italic {
   font-style: italic;
}
p.oblique {
   font-style: oblique;
}

More CSS Properties