Yellow cards are used to caution players for minor offenses, while red cards indicate a player has been sent off for a serious offense and the team must continue with one less player.