Let $X$ be a Hilbert space over $\Bbb{R}$ and fix $x_0\in H\setminus \{0\}$. Define $Q:=\{x\in X: \langle x, x_0\rangle =0\}\subset X$. I want to show that it is closed.
My idea was the following:
Let me define $F:X\rightarrow \Bbb{R};~~x\mapsto \langle x,x_0\rangle$. Then $F^{-1}(\{0\})=Q$. Furthermore let $(x_n)_n\subset X$ be a sequence s.t. $x_n\rightarrow x$. Then $$||F(x_n)-F(x)||=||\langle x_n-x,x_0\rangle||\leq ||x_n-x||\cdot ||x_0||\rightarrow 0$$ So $F$ is continuous. But since $\{0\}$ is closed in $X$ we deduce that $Q$ is closed in $X$.
Does this work?