What is CSS ?

The visibility property specifies whether or not an element is visible.

Note :

Even invisible elements take up space on the page. Use the "display" property to create invisible elements that do not take up space!

Example:

This is a visible heading

This is an invisible heading

Notice that the invisible heading still takes up space.

Demo:

This is a visible heading

This is an invisible heading

Notice that the invisible heading still takes up space.