These both are style properties.
(1) display: none
This doesn’t allocate any space and removes the element entirely from the page which means he does not appear at all though it remains in the source code.
For example:
success | <span style=”[style-tag-value]”>Appropriate style in this tag</span> success
Replacing [style-tag-value] with display:none results in:
success | | success
(2) visibility: hidden
The tag is not visible (hidden) on the page but space is allocated unlike display: none
For example:
success | <span style=”[style-tag-value]”>Appropriate style in this tag</span> success
Replacing [style-tag-value] with visibility:hidden results in:
success | | success