How Branch Prediction Works

Most modern CPUs use a branch history table for dynamic branch prediction. What does it track?