score:2

Accepted answer

The W3 spec requires explicit height/width attributes. From the docs (bolding mine):

There are some important things to take note of (referenced from the W3 specs):

  • If you do not set the x or y attributes, they will be set to 0.

  • If you do not set the height or width attributes, they will be set to 0.

  • Having a height or width attribute of 0 will disable rendering of the image.


Related Query

More Query from same tag