Proof (product of connected spaces is connected)
Let $(x_0, y_0)\in X\times Y$.
Define, for each $x\in X$, $$ \begin{align*} A_x = (\set{x} \times Y) \cup (X \times \set{y_0}). \end{align*} $$ Since $\set{x}\times Y$ is homeomorphic to $Y$ and $X\times\set{y_0}$ is homeomorphic to $X$, they are connected. Also they share a point $(x,y_0)$, so $A_x$ is connected.
Moreover, $(x_0, y_0)\in \bigcap_{x\in X} A_x$, so $X \times Y = \bigcup_{x\in X} A_x$ is connected.