If you ask the difference in regression analysis, then think it the following simple way.
Y=X*beta+delta
Confidence interval considers only the delta.
When you want to predict, you estimate beta first. Since beta is a linear combination of Ys, beta can be looked as random variable. The prediction Y=X*beta_hat+delta. Now you should consider the variance brought by delta and beta.