Article snapshot taken from Wikipedia with creative commons attribution-sharealike license.
Give it a read and then ask your questions in the chat.
We can research this topic together.
Any disconnected space has a continuous mapping which is not constant onto the discrete two-point space. Conversely if a nonconstant continuous mapping to the discrete two-point space exists from a topological space, the space is disconnected.