I know this question has been asked before but I feel like my approach to solving the problem is "different" (EDIT: turned out to be different because it's wrong!)
Since $[a,b]$ is closed and bounded we may conclude that, by the Heini-Borel theorem, $[a, b]$ must be compact. By definition of compactness, every sequence in $[a,b]$ must contain a subsequence that converges to a limit that is also in $[a,b]$. Consider any arbitrary increasing subsequence $\{x_n\}$ inside $[a,b]$. By the definition of compactness, we know that there exist some $c \in [a,b]$ such that $\{x_n\} \rightarrow c$.
Since $f$ satisfies the intermediate value property, we know that $f(c)$ exists and is within the range of $f$. One of the "characterizations of continuity" states that:
"For all $\{x_n\} \rightarrow c$, it follows that $f(x_n) → f(c).$".
How do I show that $f(x_n)$ converges to $f(c)$?
Thing is, I know that $f(x_n)$ has to converge to something since the range of $f$ is a compact set ( $[f(a), f(b)]$)… I'm just trying to show that $f(x_n) \rightarrow f(c)$! Any idea of how I can go about this?