Gaps appear due to the difference of the price from the trading range.
The major types of gaps are Area gap,Breakout gap,Runaway gap, Exhaustion gap.
Gap analysis shows the phase of the price fluctuations and also the strength of demand and supply.
Its not a directional analysis it shows the strength of the trend.