Take the case of a metric space, this is the same as what you are used to.
So say $f:X\rightarrow Y$ is a map between metric spaces. I believe you will agree about the following definition of continuity at $a\in X$,
$$\forall \epsilon \ \ \exists \delta \ \ \forall x\in X\ \ \ [d_X(x,a)<\delta \rightarrow d_Y(f(a),f(x))]$$
Now define $$B_{\epsilon}(x)=\{y\in X |d(x,y)<\epsilon\}$$
by definition these sets are a base for the topology on a metric space.
Lets now rewrite the above definition in this notation
$$\forall \epsilon \ \ \exists \delta \ \ \forall x\in X\ \ \ [x\in B_{\delta}(a) \rightarrow f(x)\in B_{\epsilon}(f(a))]$$
Now lets phrase it in such a way that the $\forall x\in X$ does not appear
$$\forall \epsilon \ \ \exists \delta \ \ \ \ [ f(B_{\delta}(a)) \subseteq B_{\epsilon}(f(a))]$$
which is equivalent to
$$\forall \epsilon \ \ \exists \delta \ \ \ \ [ B_{\delta}(a) \subseteq f^{-1} (B_{\epsilon}(f(a)))]$$
This says that the inverse of an open set about $f(a)$ contains an open set about $a$.
We could write it as
$$\forall \text{$U$ open neighbourhood of $f(a)$} \exists \text{$V$ open neighbourhood of $a$}[V\subseteq f^{-1}(U)]$$
If we now assume that $f$ is continuous at all $a$ this means that
$$\forall \text{$U$ open neighbourhood of $f(a)$} [f^{-1}(U)\text{is open}]$$
and again since this holds for all $a$,
$$\forall \text{$U$ open set in $Y$} [f^{-1}(U)\text{is open}]$$
Thus we have the definition of continuity in a topological space.