Pergunta de entrevista da empresa McClatchy

Difference between display:none and visibility:hidden

Respostas da entrevista

Sigiloso

15 de set. de 2014

Display none means the tag will not appear on the page at all.

Sigiloso

29 de jan. de 2016

display:none; // This means that this element is going to be taken out of the document flow and the box-model of the element is invisible to the rest of the DOM. visibility:hidden; // This element is still in recognized in the DOM as well as the space the box-model takes up on the page.