In some books, in the definition of submanifolds, they write \ "Let $M$ be a submanifold of $\mathbb{R^{n}}$ of dimension d if for every $x\in M$ there exists an open neighborhood such that. $$f(U\cap M)=f(U)\cap \mathbb{R^{d}}$$ and in other book \ Let $M$ be a submanifold of $\mathbb{R^{n}}$ of dimension d if for every $x\in M$ there exists an open neighborhood such that. $$f(U\cap M)=f(U)\cap (\mathbb{R^{d}}\times\{0\})$$ My question is, what is the difference between these two definitions?
More precisely, why in the second definition do we add the zero and is there a difference?