Line-height vs letter-spacing: impact on readability and values for body vs headings

This tests whether you distinguish vertical rhythm from horizontal glyph spacing. A strong answer sets body line-height to at least 1.5x per WCAG with minimal tracking, while headings use tighter line-height and tighter tracking. Red flag: identical values.
What's really being asked
The interviewer wants to know if you can separate vertical metrics from horizontal metrics and justify values based on reading context rather than aesthetics alone. At the senior level this signals that you design with accessibility and legibility constraints in mind, not just visual polish.
The full answer
First, define line-height as the vertical distance between baselines that creates rhythm and prevents crowding, while letter-spacing is the horizontal adjustment between glyphs that affects word shape recognition. Second, state that body text needs generous line-height, typically at least 1.5 times the font size per WCAG 2.1 Success Criterion 1.4.12, because dense lines cause fatigue and tracking errors during long reading sessions. Third, note that body text should use minimal or zero letter-spacing so that word shapes remain familiar and readable. Fourth, explain that headings are shorter phrases read at a glance, so they can tolerate tighter line-height and may even benefit from slight negative letter-spacing to maintain visual density and prevent airy gaps in large type. Fifth, mention that user agents must be able to override these values without breaking layout, so fixed heights and overflow hidden containers are dangerous.
The mistakes people make
A red flag is treating line-height and letter-spacing as interchangeable or applying the same scale to both elements. Another mistake is choosing values purely from a Figma file without referencing accessibility baselines like the WCAG 1.4.12 minimums of 1.5 line-height and 0.12 times the font size for letter-spacing. Candidates also stumble when they recommend tight line-height for body text to achieve a compact visual style, which sacrifices readability for aesthetics.
What usually comes next
The interviewer may ask how you would test these values across languages or scripts that do not use paragraph spacing. They might also ask how you prevent layout breakage when users apply browser extensions that force larger text spacing, or how you balance design system tokens between marketing headings and long-form editorial content.
A concrete example
Imagine a 16 pixel body paragraph in a news article. You would set line-height to 1.5 or 24 pixels and keep letter-spacing at the default zero so that the eye tracks smoothly from line to line. For a 32 pixel H2 headline above it, you might set line-height to 1.2 or roughly 38 pixels and letter-spacing to negative 0.02 ems to tighten the gaps without crushing the letterforms. If a user overrides the page with a bookmarklet that forces 1.5 line-height and 0.12 times the font size letter-spacing, the article paragraphs should reflow cleanly without clipping or overlapping, while the heading simply becomes more open but remains legible.
Interview question
When styling a news article, how should line-height and letter-spacing differ between body text and headings?
- a.Increase letter-spacing on body text to improve word shape recognition, and use generous line-height on headings to prevent overlap.
- b.Give body text at least 1.5 line-height with minimal letter-spacing, and use tighter line-height with slight negative letter-spacing for headings.Correct
- c.Set body text to tight line-height for a compact style and keep default letter-spacing across all elements.
- d.Apply the same line-height and letter-spacing scale to body text and headings so the design system stays uniform.
Why? this is the answer
Body text needs generous vertical rhythm (at least 1.5x) and minimal letter-spacing for comfortable reading, while headings can tolerate tighter values because they are scanned quickly. Option D is a tempting red flag because treating both elements identically confuses vertical rhythm with horizontal spacing and harms readability.
Just read this? Test yourself on what you have been reading.
Read the original → w3.org
- #typography
- #accessibility
- #css
- #wcag
- #readability
You just looked this up. Could you explain it out loud?
That is the part interviews actually test. Tezvyn takes questions like this one and gives you what the interviewer is really checking, the answer that lands, and the mistake that ends the conversation, in the four minutes before your next meeting.
The iPhone app is on the way
We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.
Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.
We are hiring for this. Every open role lists the topics its interview covers, so you can prepare for the real thing rather than guessing.
See open roles