Prove that if $X$ is Hausdorff, $\Delta=\{(x, x)\mid x\in X\}$ is closed in $X\times X$ (with the product topology).
My attempt:
Let $x_1, x_2\in X$ s.t. $x_1\ne x_2$.
There exist neighborhoods $U_1$ and $U_2$ of $x_1$ and $x_2$ that are disjoint.
$U_1\times U_2$ is a basis element in the product topology on $X\times X$. So, $U_1\times U_2$ is open in $X\times X$.
Let $x\in X$.
$(x, x)\in U_1\times U_2\implies x\in U_1$ and $x\in U_2\implies x\in U_1\cap U_2$, which contradicts the fact that $U_1$ and $U_2$ are disjoint.
So, $(x, x)\notin U_1\times U_2$.
I feel that I'm on the right track but don't know how to proceed. Could someone please help me out?