Width specifies the horizontal dimension of the element. Block-level elements by default, which is 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, height, margin, border, and padding for details on each.
W3Schools: Box Model