HTML & CSS · Middle · Question 18 of 75
What does the CLS (Cumulative Layout Shift) metric measure?
- 1The time until the largest element appears on the screen
- 2The delay in the page's response to a click or key press
- ✓Correct answer: Unexpected layout shifts during the page's lifetime
Explanation
CLS measures visual stability: how much content "jumps". A good value is under 0.1. Time to the largest element is LCP, responsiveness is INP. The main causes of shifts are images without dimensions, banners and ads without reserved space, and web fonts.