Surjective continuous function $[0,1] \to [0,1]^2$ [duplicate]

I was in class and the lecturer only mentioned that there exists such function. I didn't find anything about it on the internet. Is it simple? Maybe you could help me to understand that? thanks