Prove there is no bijective continuous function $f:[0,1] \to [0,1]^2$.
Here is my attempt so far: assume there a function $[0,1] \to [0,1]^2$ is continuous and surjective. We wish to show that it cannot be injective. Suppose in the contrary that it is injective. Then since the preimage of $f$ is compact and $f$ is bijective, its inverse $f^{-1}$ is a bijection from the unit square to $[0,1]$. Also, it is a uniform convergence.
I am also wondering if there is a not necessarily continuous bijection from the unit square to unit line.
I am not sure how to prove this problem. Any help would be great.