HTML & CSS · Middle · Question 20 of 75

What does font-display: swap do in @font-face?

Explanation

swap removes "invisible text" (FOIT): users see content in a fallback font right away, then the font changes (FOUT). This can cause a small layout shift, reduced by tuning fallback metrics (size-adjust). The optional value lets the browser skip the font entirely on a slow network.

Further reading

Problem with a question

HTML & CSS · Middle · question 20

Test yourself

Take the HTML & CSS · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz