If $X$ and $Y$ are Hausdorff topological spaces, then so is $X\times Y$ with the product topology.
Recall that product topology is generated by the sets of the form $U\times V$, where $U$ is open in $X$ and $V$ is open $Y$.
Now suppose that $(x_1,y_1)\ne(x_2,y_2)$ are two points in $X\times Y$. You want to find disjoint neighborhoods of these two points.
The fact that $(x_1,y_1)\ne(x_2,y_2)$ means that either $x_1\ne x_2$ or $y_1\ne y_2$.
If $x_1\ne x_2$ then there are two open subset $U_1\ni x_1$, $U_2\ni x_2$ such that $U_1\cap U_2=\emptyset$. (Here we are using the fact that $X$ is Hausdorff.)
Can you use $U_1$ and $U_2$ to find disjoint open subsets of $X\times Y$ which contain $(x_1,y_1)$ and $(x_2,y_2)$?
Can you see that the case $y_1\ne y_2$ is analogous?