By default img is an inline element but the dimensions are defined by the dimension of the image itself.
You can set the value for with and height allowing it to take up space before it loads, to mitigate content layout shifts.
From MDN :
<img>
is a replaced element; it has a display value of inline by default
, but its default dimensions are defined by the embedded image's intrinsic values, like it were inline-block. You can set properties like border/border-radius, padding/margin, width, height, etc. on an image.