In an aerosol can used for spray paint, a highly compressed "propellant" helps move the liquid into a "dip tube" so that it can be sprayed out. the valve through which the liquid sprays is usually closed, but when it is pressed down, it opens and allows material to pass through.