Why are we able to size an img since it is an inline element?

Hello everyone, I am a beginner. The img is an inline element but we can size it with height and width properties while we cannot size the other inline elements such as span and a. The images are like boxes and already have their sizes. Is this the answer or I am missing something?

Hi,

Hi,
It’s a very well explanation.
Thank you