A trap is a hidden danger that can cause sudden unwanted conditions and/or damage. A vent that spews toxic gas or a Glyph of Warding: Lightning that zaps creatures that trip it are both examples of traps.