how to set style for italic in css code example Example 1: italic css font-style: italic; Example 2: italic in css style= "font-style: italic;"