text font sizxe css code example Example 1: html font size <span style="font-size:20px;"></span> Example 2: text size in CSS font-size: 2em;