In my course we have just been introduced to and will only be dealing with regularly embedded submanifolds.
Let $M = [0,1]\times [0,1] \subset \mathbb{R}^2$.
I don't think it's a submanifold. If it is, then is it a smooth submanifold? My thinking is that if we try and take open subsets $U$ and $V$ in $\mathbb{R}$ such that a corner point (say $(1,1)$) is in $U\times V$, then we can't find a continuous function $\phi : U \to V $ such that $M \cap (U \times V) =$ graph$(\phi)$ as it will not be well defined at $1 \in U$ and as $U$ is an open set in $\mathbb{R}$ that contains $1$, it contains $1+\delta$ (for some small $\delta > 0$) but $\phi (1+\delta)$ can't take a value in $V$ in order for $M \cap (U \times V) =$ graph$(\phi)$ to hold.
Is my thinking correct? How would this change if M were not embedded in $\mathbb{R}^2$?