A zero-dimensional Hausdorff space is totally disconnected

Suppose $X$ is a zero dimensional Hausdorff space, and $\mathcal{B}$ a clopen basis for it.

Suppose $A$ is a set containing points $x$ and $y$. If they are distinct we can find an open set containing $x$ not containing $y$, hence we can find a basis element $B \in \mathcal{B}$ containing $x$ but not $y$. The sets $A\cap B$ and $A\cap B^c$ are both open in $A$ and disjoint, and their union is $A$, hence $A$ is disconnected.

Thus the space doesn't even need to be Hausdorff - the $T_1$ axiom is sufficient.


I'm not quite sure where you were trying to get with your suggested argument. But here's a possible outline for a solution.

Let $X$ be a zero-dimensional Hausdorff space, and let $B$ be a clopen basis. Now suppose that $C\subseteq X$ is a connected set, let us show that $C$ is a singleton.

Suppose that $x\in C$, then there is a clopen environment $U$ of $x$. Conclude that $U\cap C$ is both open and closed relative to $C$, and therefore either $C$ is a singleton, or that $C$ is not connected which is a contradiction.