In traditional typography, text is composed to create a readable, coherent, and visually satisfying whole that works invisibly, without the awareness of the reader.
Since digitization, typography has spread to a wider ranger of applications, appearing on web pages, LCD mobile phone screens, and hand-held video games. The ubiquity of type has led typographers to coin the phrase "Type is everywhere".
Typography is what language looks like.Ellen Lupton
Prose fiction, non-fiction, editorial, educational, religious, scientific, spiritual and commercial writing all have differing characteristics and requirements of appropriate typefaces and fonts.
For historic material established text typefaces are frequently chosen according to a scheme of historical genre acquired by a long process of accretion, with considerable overlap between historical periods.
A code example from Stylin’ with CSS, Third Edition by Charles Wyke-Smith. Visit stylinwithcss.com for more CSS information and updates.