height specifies the vertical dimension of the element. Block-level elements by default, which corresponds to the auto value, will fill up their containing element from left-margin to right-margin while inline elements are generally only as big as they have to be to display their content. See Box Model to calculate the final width if other box model properties are set.
See Box Model, width, margin, border, and padding for details on each.
W3Schools: Box Model