This is from Infinite-Dimensional Topology, Prerequisites and Introduction. Here a space means a metrizable and separable space.
Lemma 1.2.3. For every compact space $X$ there exists an isometric $i:X\to C(X)$ such that for every $Y\subseteq X$ the set $i(Y)$ is closed in the convex hull of $i(Y)$.
Remark. Actually every space is a closed subspace of a convex set in a normed space, because every space can be thought of as a subspace of the compact Hilbert cube $Q$ (theorem 1.4.18).
But theorem 1.4.18 only says every space is homeomorphic to a subspace of $Q$. How can we obtain then that every space $X$ is a closed subspace of a convex set in a normed space? Wouldn't we need actually that $X$ can be thought of as a closed subspace of $Q$? But wait, then $X$ need be compact which is the case we want to avoid.
What do you think?
Thank you.