As air masses move across the land and the oceans, they bump into each other, but the air masses do not easily mix. Why is that? Think about oil-and-vinegar salad dressing. The less dense oil floats on top of the more dense vinegar.
Something similar happens when two air masses with different densities and temperatures meet. The area where the air masses meet is called a front. Because cold air is denser, it sinks beneath warm air. The warm air is forced upward and winds develop. Fronts usually bring a change in temperature, and they always bring a change in wind direction. There are four types of fronts: cold fronts, warm fronts, stationary fronts, and occluded fronts. Fronts are named for the air that is behind the front.
Watch this video for an introduction to the types of fronts.