Explain precisely why a continuous surjection $f: [0,1] \mapsto [1, \infty)$ does / does not exist
I am convinced that such function does not exist. My agument is that - according to the Weierstrass Theorem on continuous functions, if a function is continuous on $[a,b]$ then there are two points in the closed interval that map into the supremum and the infimum of the function, respectively. Since the function is continuous on a closed interval and it does not take a maximal value - it does not exist.
Is my reasoning correct?