Use code with caution. Copied to clipboard

: Defining width and height reserves space on the page before the image even loads. This prevents the text from "jumping" around once the image appears.

: To make an image fit its container while keeping its shape, set the width to a percentage and the height to auto . Use code with caution. Copied to clipboard