The ideal font size can vary depending on the type of content and the audience, but generally, a font size of 14-16 pixels for body text is considered optimal. This range ensures that the text is large enough to be read comfortably on both desktops and mobile devices. For headlines and sub-headlines, a size of 20-24 pixels is usually effective in grabbing attention and establishing a hierarchy in your content.