css larger font size code example Example 1: font size css .class { font-size: 12px; } Example 2: html font size <span style="font-size:20px;"></span>