Is it better / faster to resize an image using CSS or with an <img> tag?

I was wondering what a better / faster way to resize an image.

Normally I would resize the image using CSS, but college told me that using an attribute widthlike

<img width="size" [..]> 

the browser will make the page faster.

Does anyone know if this is true?

+3
source share
5 answers

width height img es object s. , IMO , , X .

+3

, , , .

+5

img. , css .

+3

, CSS. , , , , , CSS ...

+1

, , , HTML CSS - .

, , - .

0

Source: https://habr.com/ru/post/1773071/


All Articles