A window is an opening in an otherwise solid and opaque surface that allows the passage of light and, if not closed or sealed, air and sound. Windows are usually glazed or covered in some other transparent or translucent material. Windows are held in place by frames, which prevent them from collapsing.
A door is a panel or barrier, usually hinged, sliding, or electronic, that is used to cover an opening in a wall or partition going into a building or space. A door can be opened to give access and closed more or less securely. The term door is also applied to the opening itself, more properly known as the doorway .
Doors are nearly universal in buildings of all kinds, allowing passage between the inside and outside, and between internal rooms. When open, they admit ventilation and light.