I've been studying Functional Analysis for a test and this was one of the questions in one of the previous tests:
Construct an infinite-dimensional closed subspace of $C[0,1]$ with respect to the supremum norm.
I know every infinite-dimensional Banach Space has a subspace which is not closed but I cannot find a closed one. Also, why does a supremum norm matter?
As mentioned earlier, $C([0,1])$ is of course a closed subspace of itself and you can verify that it has infinite dimension. Regardless, if you meant to ask for a proper subspace, then $$ C_0([0,1]) = \{ f\in C([0,1]): f(0)=f(1)=0\} $$ works. I'll leave it to you to show why.