So, I have this between my head tags
Difference between display
and visible
:
visible
still takes up space on the page. The adjacent content is not rearranged when the element is toggled between visible
and hidden
.display=none
will not take up any space on the page. Other display
values will cause the element to take up space. For example, display=block
not only displays the element, but adds line breaks before and after it.