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