font size 9pixel in html 5 code example Example 1: text size in CSS font-size: 2em; Example 2: css font-size #selector{ font-size:20px; }