3 ms·
I would imagine it's best practice to define height and width attributes for <img> tags, no?
by thehappypm 5y ago
I would imagine it's best practice to define height and width attributes for <img> tags, no?
- klodolph 5y agoYes, it's just tedious to do by hand, which is why, in practice, people who write HTML by hand often don't do it.
- thehappypm 5y agoI think it's one of the more elegant styling things in HTML, you don't need to use the more verbose style=, it's just plain Jane height= and width=. I've never left it out, and I've written a few HTML pages by hand.