I'm trying to convince myself on this statement.
Suppose $X$ is compact and Hausdorff, and let $U\subseteq X$ be any subset. Let $x\in U$ and let $C\subset U$ be closed in the subspace topology with $x\notin C$. Then $C$ is also closed in $X$.
How am I suppose to define a continuous function $f:U\rightarrow [0,1]$ such that $f(x)=0$ and $f(y)=1$ for each $y\in C$?