html css standard font size code example Example 1: font size css .class { font-size: 12px; } Example 2: css font-size #selector{ font-size:20px; }