I was studying about continuous maps of topological spaces where I find an example
Let $f:X\to Y$, where $X$ and $Y$ are topological spaces and $\beta$ be bases for the topology on $Y$. Suppose for each member $B \in \beta$ then $f^{-1}[B]$ is an open subset of $X$. then $f$ is continuous function.
Here I'm going to add more information
For let $H$ be and open subset of $Y$ then $$f^{-1}[H] = f^{-1}[\underset{i}{\cup}B_i]=\underset{i}{\cup}f^{-1}[B_i]$$ where $B_i$ are members of $\beta$ and so $f^{-1}[B_i]$ is union of open sets is open. So $f^{-1}[H]$ is open in $X$. Hence $f$ is continuous map.
What I got if $Y$ has bases then function $f$ is must continuous.
My question is that, will every topology has bases, because if every topology has bases then function $f$ will must be continuous.
Every topological space $(X,\tau)$ has a base, namely $\tau$ is a base for $\tau$.
Just recall the definition:
Do you see that $\tau$ trivially satisfies this definition?