The display attribute lets you control the rendering of graphical or container elements.
기본적으로 HTML의 각 element들은 inline 또는 block 요소로 나눌 수 있다. display는 이 두 요소를 변경 가능하게 하는 attribute이다.
div {
display: inline-block
}
The visibility CSS property shows or hides an element without changing the layout of a document. The property can also hide rows or columns in a table tag.
'display: none': 해당 요소를 사라지게 만든다. 공간도 없애버리기 때문에 layout 변화가 있다.
'visibility: hidden': 해당 요소를 보이지 않게 만든다. 공간이 비어있는 상태로 보이기 때문에 layout 변화가 없다.