Pregunta de entrevista de McClatchy

Difference between display:none and visibility:hidden

Respuestas de entrevistas

Anónimo

15 sep 2014

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

Anónimo

29 ene 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.