Answer
With visibility is set to 'hidden', the element being hidden still occupies its same place in the layout of the page, while with display set to 'none' hides an element, and it will not take up any space.
With visibility is set to 'hidden', the element being hidden still occupies its same place in the layout of the page, while with display set to 'none' hides an element, and it will not take up any space.