In CSS The font-size property sets the size of the text and To allow users to resize the text many developers use em instead of pixels.1em is equal to the current font size. The default text size in browsers is 16px. So, the default size of 1em is 16px.The size can be calculated from pixels to em using this formula: pixels/16=em. So today we discuss how to set font size with em using css.