In CSS, the display property determines how an element looks. It is also a crucial part of the presentation of you HTML code as it has a significant impact on layouts.
Basic display Property Syntax
element {
display: value;
}
display: none
When you set the display property of an element to none, the element is completely taken off the page and it doesn’t have an effect on the layout.
This also means that devices like screen readers, which make websites accessible to blind people, wont't have access to the element.
Do not confuse display: none with visibility: hidden. The latter also hides the element, but leaves the space it would normally take open or empty.
span {
display: none;
background-color: #006100;
width: 140px;
height: 140px;
}