A door is a moving structure used to block off, and allow access to, an entrance to or within an enclosed space, such as a building or vehicle. Doors normally consist of a panel that swings on hinges on the edge, but there are also doors that slide or spin inside of a space. Similar exterior structures to doors are called gates.
Typically, doors have an interior side that faces the inside of a space and an exterior side that faces the outside of that space. In many cases the interior side of a door mostly matches its exterior side, but in some other cases there are sharp contrasts between the two sides, such as in the case of a vehicle door.
When open, doors admit people, animals, ventilation or light. The door is used to control the physical atmosphere within a space by enclosing the air drafts, so that interiors may be more effectively heated or cooled. Doors are significant in preventing the spread of fire. They also act as a barrier to noise. Many doors are equipped with locking mechanisms to allow entrance to certain people and keep out others. As a form of courtesy and civility, people often knock before opening a door and entering a room.
Doors are used to screen areas of a building for aesthetics, keeping formal and utility areas separate. Doors also have an aesthetic role in creating an impression of what lies beyond. Doors are often symbolically endowed with ritual purposes, and the guarding or receiving of the keys to a door, or being granted access to a door can have special significance. Similarly, doors and doorways frequently appear in metaphorical or allegorical situations, literature and the arts, often as a portent of change.
The earliest in records are those represented in the paintings of the Egyptian tombs, in which they are shown as single or double doors, each in a single piece of wood. Doors were once believed to be the literal doorway to the afterlife, and some doors leading to important places included designs of the afterlife. In Egypt, where the climate is intensely dry, there would be no fear of their warping, but in other countries it would be necessary to frame them, which according to Vitruvius (iv. 6.) was done with stiles (sea/si) and rails (see: Frame and panel): the spaces enclosed being filled with panels (tympana) let into grooves made in the stiles and rails. The stiles were the vertical boards, one of which, tenoned or hinged, is known as the hanging stile, the other as the middle or meeting stile. The horizontal cross pieces are the top rail, bottom rail, and middle or intermediate rails. The most ancient doors were made timber, such as those referred to in the Biblical depiction of King Solomon's temple being in olive wood (I Kings vi. 31-35), which were carved and overlaid with gold. The doors dwelt upon in Homer would appear to have been cased in silver or brass. Besides olive wood, elm, cedar, oak and cypress were used. A 5,000-year-old door has been found by archaeologists in Switzerland.