Adding inline CSS dimensions to images,videos,and gif s helps improve which Core Web Vital?
Choose an answer
Tap an option to check your answer.
Correct answer: Cumulative Layout Shift.
Why this is the answer
The correct answer is Cumulative Layout Shift(CLS).Cumulative Layout Shift measures the stability of content layout during the loading process,and it is influenced by the movement of elements on the webpage.Adding inline CSS dimensions toimages,videos,and GIF s can help improve CLS by providing the browser with the exact dimensions of these elements before they are fully loaded anddisplayed.When the browser knows the dimensions in advance,it can reserve the necessary space for themedia,preventing sudden shifts in layout as the content loads.This proactive approach minimizes unexpected changes in the page's visual presentation,there by enhancing user experience and contributing to a lower CLS score.By addressing CLS through techniques such as inline CSS dimensions,website owners can optimize their Core Web Vitals,improve page stability,and ultimately provide a smoother and more enjoyable browsing experience for their visitors.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed