The height attribute specifies the height of its element
It is only understood / usable on the following elements:
Therefore if you want to specify the height of another element type such as a div, you need to use the CSS height