A door is a hinged or otherwise movable barrier that allows ingress into and egress from an enclosure. It is a panel that fits into the doorway of a building, room, or vehicle, and its essential purpose is to provide security by controlling access to the doorway. Doors are generally made of a material suited to their task and are commonly attached by hinges, but can move by other means, such as slides or counterbalancing. There are various types of doors, including garden doors, jib doors, and pet doors, each serving specific purposes.