In a comment of this answer someone said that
if an inner product space satisfy that every closed subspace is complemented then it has an (countable) orthonormal basis
and this answer claim that
H has a countable orthonormal basis if and only if H has a countable dense subset (which mean H is separable).
I trying to get the first one:take $e_1$ from $H$ such that $\||e_1\||=1$,then $E_{1} = \langle e_{1} \rangle $ is closed,so $H=E_{1}\oplus E_{1}^{\bot}$ then take $e_2$ from $H\setminus \langle e_{1} \rangle$ such that $\||e_2\||=1$ ,$E_{2}=\langle e_{1},e_{2} \rangle$ is closed,so $H=E_{2}\oplus E_{2}^{\bot}$, and so on ...... but I don't know that is it a right way to get a countable orthonormal basis of $H$.
Thanks if you can give me any advice of any form.