imahdio / HTML-Essential-Training

3 stars 1 forks source link

Doesn't `size` attribute useless in `<img>` element? #5

Open imahdio opened 2 years ago

imahdio commented 2 years ago

This issue related to Responsive width lesson from HTML Essential Training course. based on this code snippet I get same results either with using sizes attribute or without it.

Doesn't it seem weird to you? What's your opinion regrading sizes attribute which seems to be completely useless?

nurulaisyah61 commented 2 years ago

hmmm, I think it cant be really said it's useless, it's just such a rare case we need to use attribute sizes

https://user-images.githubusercontent.com/34148935/146775500-5cdf73a7-eb72-4ae2-b45d-95d1ca92adb3.mp4

I try to update some of the sizes here... and it shows the difference though...