The display
CSS property sets whether an element is treated as a block
or inline
element and the layout used for its children, such as flow layout, grid or flex.
/* legacy values */
display: block;
display: inline;
display: inline-block;
display: flex;
display: inline-flex;
display: grid;
display: inline-grid;
display: flow-root;
/* box generation */
display: none;
display: contents;
/* two-value syntax */
display: block flow;
display: inline flow;
display: inline flow-root;
display: block flex;
display: inline flex;
display: block grid;
display: inline grid;
display: block flow-root;
/* other values */
display: table;
display: table-row; /* all table elements have an equivalent CSS display value */
display: list-item;
/* Global values */
display: inherit;
display: initial;
display: unset;
The most important ones are:
display: block;
display: inline;
display: none; /* removes the content */
Source: https://developer.mozilla.org/en-US/docs/Web/CSS/display