displayproperty specifies the display behavior (the type of rendering box) of an element.
Hiding an element can be done by setting the
none. The element will be hidden, and the page will be displayed as if the element is not there.
visibility:hidden;also hides an element. However, the element will still take up the same space as before. The element will be hidden, but still affect the layout: