font css property code example
Example 1: how bold text in css
p.normal {
font-weight: normal;
}
p.thick {
font-weight: bold;
}
p.thicker {
font-weight: 900;
}
Example 2: font-style css
#example {
font-style: normal; /* no specification, default */
font-style: italic; /* font is italic */
font-style: oblique; /* font is italic, even if italic letters are not specified for font family */
font-style: inherit; /* inherit property from parent */
font-style: initial; /* default value */
}
Example 3: italic in css
style= "font-style: italic;"