visibility:hidden : Ithides an element, but it will still take up the same space as before. The element will be hidden, but still, affect the layout.

display:none : It hides an element as well as doesn't preserve the space.

BY Best Interview Question ON 13 Jan 2019