This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title: Always Set a Width and Height on Your Images
title: Set a Width and Height on Images to Reduce Layout Shifts
description: Dimensionless images can cause layout shifts as they load, hurting your page's performance. By setting a width and height on images, you allow the browser to initialize an aspect ratio for those images and minimize layout shifts.
keywords: [setting width and height on images, setting an image's width and height, width and height, layout shifts]