Typography reference
40 concepts with working browser examples, practical checks and related tools.
Step-by-step guides →Typography hierarchy
A hierarchy assigns different visual emphasis to content roles. A heading must not compete with every label or paragraph.
See examples →Serif and sans-serif letterforms
Serifs are additional terminal features on letter strokes. Sans-serif designs generally lack them, but there are many variations in proportion and contrast within either category.
See examples →X-height and perceived size
X-height refers to the height of a lowercase x above the baseline. Two faces set at the same CSS size can have visibly different lowercase heights and apparent scale.
See examples →Capital height and display lettering
Cap height is the distance from baseline to the top of a typical flat capital. Curved and pointed forms may overshoot it optically.
See examples →The text baseline
A baseline is the reference line on which most letters sit. Descenders extend below it and ascenders extend above the main lowercase body.
See examples →Ascenders and descenders
Ascenders and descenders give lowercase words a varied silhouette. Letters such as h and g extend beyond different parts of the lowercase body.
See examples →Leading and line height
Leading is a traditional term for spacing between lines of type; CSS line-height determines the height of the line box. They are related but not identical historical measures.
See examples →Kerning and pair spacing
Kerning changes the spacing of specific glyph pairs. It is not the same as applying one letter-spacing value to an entire line.
See examples →Tracking and letter spacing
Tracking changes spacing across a run of text. CSS letter-spacing expresses this spacing directly in supported units.
See examples →Word spacing
Word spacing changes the spaces between words independently of the general spacing between letters.
See examples →Reading measure and line length
Measure is the width of a line or text column. The number of characters that fit varies with font, size and content.
See examples →Ragged-right text alignment
Left-aligned text has a ragged right edge in left-to-right scripts. Justification instead expands or adjusts spacing to align lines with both sides.
See examples →Center alignment and short text
Centered text creates a symmetrical line arrangement but the starting position varies on every line. It is often suited to short display copy rather than long paragraphs.
See examples →Display type versus reading type
Display settings emphasize character and presence; text settings prioritize sustained reading. The same family may work in both roles with different choices.
See examples →Font weight and emphasis
Font weight describes the visual thickness of letter strokes. CSS weight values request a style or supported variable position; appearance differs across families.
See examples →Italic and oblique type
Italic designs may include alternate letterforms; oblique styles are slanted forms. A CSS request may use a real face or synthesize one depending on availability.
See examples →Condensed and expanded proportions
Width is a design characteristic that affects both letter shape and measure. Real condensed designs can be preferable to horizontally compressing an ordinary font.
See examples →Monospaced and proportional fonts
In a monospaced face characters generally share a fixed advance. Proportional faces allow different letter widths to create a more natural rhythm for prose.
See examples →Tabular and proportional numerals
Tabular figures are designed with equal advances for column alignment; proportional figures can have differing widths. Some fonts expose these as OpenType features.
See examples →Oldstyle and lining numerals
Lining figures generally align with capital forms; oldstyle figures can have ascender- and descender-like proportions that blend with lowercase text.
See examples →Ligatures and contextual glyphs
A ligature substitutes one glyph for a sequence of characters where a font and shaping engine support it. The underlying text remains a character sequence.
See examples →Small capitals
Small caps are capital-shaped forms sized to work with lowercase text. Dedicated small-cap glyphs can have better proportions than simply scaling full capitals.
See examples →Counters and apertures
Counters are enclosed or partly enclosed spaces in letterforms; apertures are openings that influence how letter shapes read.
See examples →Stroke contrast in type
Stroke contrast describes differences in thickness between strokes within a letterform. High-contrast display designs often have thin hairlines and heavy stems.
See examples →Optical overshoot
Curved or pointed shapes can extend slightly beyond flat alignment references to appear optically equal in height.
See examples →Sidebearings and advances
Sidebearings are spaces associated with glyph edges within the advance. The advance controls pen movement; it is not necessarily equal to visible ink width.
See examples →The em and rem units
An em is relative to font size in its relevant context; rem is relative to the root element's font size. Nested em values can compound.
See examples →Minimum and maximum font size
CSS clamp constrains a preferred value between a minimum and maximum. A preferred viewport-relative expression can provide gradual size changes.
See examples →Optical size and text scale
An optical-size axis, when provided, can adjust a font design for different text sizes. It is distinct from simply scaling the same outlines.
See examples →Fallback and synthetic styles
Fallback chooses another font when the requested family or glyph is unavailable. Style synthesis can simulate a missing bold or italic.
See examples →Contrast and typography
Luminance contrast helps text remain distinguishable from its background. Font size, weight and viewing conditions also matter.
See examples →Whitespace and line wrapping
White-space and wrapping rules determine how spaces and line breaks are treated in CSS. Unbreakable content can overflow a narrow container.
See examples →Breaking long words safely
Long unbroken strings may overflow containers even with a sensible font size. Wrapping behavior is independent of the font's glyph repertoire.
See examples →Hyphens, en dashes and em dashes
Hyphens, en dashes and em dashes are distinct characters with different typical editorial uses and widths. Style conventions vary by language and publication.
See examples →Straight and typographic quotation marks
Straight and curly quotation marks use different codepoints and can reflect different typographic conventions. The correct convention depends on context and language.
See examples →Combining marks and accented letters
A grapheme may be encoded as a single precomposed character or a base followed by combining marks. Correct positioning depends on shaping and the font.
See examples →Text direction and alignment
Text direction affects inline layout and the Unicode bidirectional algorithm. Right alignment alone does not change the paragraph's directional base.
See examples →Underline placement and readable links
Underlining identifies links or emphasizes text. Its thickness, offset and intersection with glyphs affect legibility.
See examples →Paragraph spacing versus line height
Line height controls line boxes; paragraph spacing separates content blocks. They are distinct tools for organizing reading rhythm.
See examples →Responsive typography checks
Responsive typography balances size, wrapping, hierarchy and readable controls across viewports. Scaling font size alone is not enough.
See examples →