changing font style in css code example Example 1: italic in css style= "font-style: italic;" Example 2: css font style .example { font-style: italic; }