While others may suggest going via contrapositive ($f$ not monotone $\implies$ $f$ not injective), I prefer to do it this way.
Let $g(x,y) = f(x)-f(y)$, defined on the domain $D = \{(x,y) \in \mathbb R^2 : x>y\}$ . Note that $g$ is continuous because $f$ is, and the $D$ is connected in the real plane. Hence, $g(D)$ is also connected on the real line, so it is an interval. However, since we claim it is injective, $g(D)$ cannot contain zero (there can't be different points $x,y$ with $f(x)=f(y)$), so $g(D)$ as an interval, lies entirely to the left or to the right of zero i.e. $g$ is entirely negative or entirely positive as a function. Combining this with the definition of $g$, $f$ is either strictly increasing or strictly decreasing.
Points to keep in mind for this proof:
1) $g$ was continuous.
2) $D$ was connected, this combined with $1)$ to show that $g(D)$ is connected.
3) Every connected set of the real line is an interval.
4) The injectivity of $g$ was used to show that $g(D)$ cannot contain zero, this combined with $3)$ to complete the proof.