HTML DOM Style display Property\\n\\n* * *\\n\\n## Definition and Usage\\n\\nThe display property sets or returns the element's display type.\\n\\nMost elements in HTML are either "inline" or "block" elements: an inline element has floating content on both its left and right sides. A block element fills the entire line, and there is nothing to display on its left or right.\\n\\nThe display property also allows authors to show or hide an element. Similar to the visibility property. However, if you set display:none, the entire element will be hidden, if you set visibility:hidden, the element's content will be invisible, but the element retains its original position and size.## Syntax\\n\\nSet the display property:\\n\\nObject.style.display="_value_"\\n\\nReturn the display property:\\n\\nObject.style.display\\n\\n| Value | Description |\\n| --- | --- |\\n| block | Element is displayed as a block-level element. |\\n| compact | Element is displayed as a block-level element or inline element, depending on context. |\\n| inherit | The value of display is inherited from parent element. |\\n| inline | Default. Element is displayed as an inline element. |\\n| inline-block | Element is displayed as an inline box inside a block box. |\\n| inline-table | Element is displayed as an inline table (similar to
), with no line breaks before or after the table. |\\n| list-item | Element is displayed as a list. |\\n| marker | This value sets content as a marker before and after the box (used with :before and :after pseudo-elements, otherwise this value is the same as "inline"). |\\n| none | Element is not displayed. |\\n| run-in | Element is displayed as a block-level or inline element, depending on context. |\\n| table | Element is displayed as a block-level table (similar to