Fill in the blank: Adding width and height attributes to images helps reduce _________________.

First Input Delay

Total Blocking Time

Cumulative Layout Shift

Time to Interactive


Certification program: 👉 HubSpot academy certification exams

Explanation: Adding width and height attributes to images helps reduce Cumulative Layout Shift. Cumulative Layout Shift (CLS) refers to the unexpected shifting of page elements during the loading process, which can disrupt the user experience, particularly when content shifts while users are interacting with the page. When an image loads without specified dimensions, the browser might not be able to allocate sufficient space for it, causing the content layout to shift once the image is fully loaded. This can be especially problematic on pages with multiple images or dynamic content. By adding width and height attributes to images in HTML, developers can reserve the required space for images before they load, preventing sudden layout shifts as the images render. This optimization improves the stability and predictability of the page layout, enhancing user experience and reducing the likelihood of CLS occurrences. Therefore, adding width and height attributes to images is an effective strategy for mitigating Cumulative Layout Shift and promoting a smoother browsing experience for users.

Passing exams is not a workout. Multiple attempts won’t make you stronger.


  1. All possible certification exam questions
  2. 100% correct and verified answers
  3. Instant download
  4. Detailed explanations written by experts
  5. Free lifetime updates.
  6. All Hubspot category certifications in one package. Save big.




Note: we perform daily scans ensuring the file corresponds exactly the latest exam version and contains all possible questions from the real certification program.

You may also be interested: