Fill a glass completely with water (to its brim) and cover it with a flat and stiff card paper (or a piece of glass). Holding your palm on the card, turn the glass upside down and take the palm away from the card.
You will find that the water does not spill. The atmospheric pressure on the card (acting upward) is greater than the pressure of the water in the glass (acting downward). Hence, the water in the glass does not spill.