Apply width to picture or img?

Hello, i have a picture element and inside it I have two source elements and a img element.
when we want to apply width to image , we should apply it to picture or img?
in Html and CSS course , part 3 , showcase block , instructor applied width to img.
Does it make a difference?

Hello eking2022,
I hope you are having a great day!
You can simply set the height and width of the image by applying the inline CSS as I have mentioned below!
The height and width of an image can be set using height and width attribute. The height and width can be set in terms of pixels.
< img src = “image source” alt= “logo” width=“300” height=“300”>

I meant is it difference to apply width and height on picture element or img element?