You can separate two cases:
- div and other containers : height is the one that the browser will use if you do not specify anything while trying to hide the contents of the element. (read Mathijs for more details).
- images and other block elements with internal dimensions (width and height): if you specify the width, then "height: auto" will scale proportionally.
In other words, it is useless if you do not need to reset the behavior of the browser or keep the proportions for some objects.
source share