how to increase font size through .class css code example Example 1: font size css .class { font-size: 12px; } Example 2: text size in CSS font-size: 2em;