One em was traditionally defined as the width of the capital “M” in the current typeface and point size. It picks the value of font size from html tag and calculates the values based on same.