Display and Visibility
With the display property, you can specify how an element is displayed, which includes the following values:
Inline | block | contents | flex | grid | inline-block | none ,…
p {
display: none;
} // The element is completely removed.
The visibility CSS property shows or hides an element without changing the layout of a document.this property cat take following values:
visibility: visible | hidden | collapse | initial | inherit;
p {
visibility: hidden;
}