A topological space is a pair $(X, T_X)$ where $X$ is any set and $T_X$ is a collection (a set) of some or all of the subsets of $X,$ subject to:
$\phi$ (the empty set) and $X$ belong to $T_X.$
If $C$ is any set of members of $T_X$ then the common union $\cup C=\cup_{t\in C}\,t $ belongs to $T_X.$
If $D$ is any $finite$ set of members of $X$ then the common intersection $\cap D=\cap_{d\in D}\,d$ belongs to $T_X.$
$T_X$ is called a topology on $X.$ The members of $T_X$ are called the open sets, but this is meaningful only when talking about a particular $T_X.$ And the complements, in $X,$ of the members of $T_X$, are called the closed sets. Again, this makes sense only when talking about a particular $T_X.$ It is common to say "the space $X$", especially when it is understood from the context (that is, from other things that were already said), which $T_X$ is being considered.
When $(X,T_X)$ is a topological space and $S\subseteq X$ we can define a topological space $(S,T_S)$ where $T_S=\{t\cap S:t\in T_X\}.$ This $T_S$ is called the subspace topology on $S$ with respect to $T_X.$ It is common to say "the subspace $Y$".
If $T_{\Bbb R}$ is the "usual" or " standard" topology on $\Bbb R,$ then any $C\subset \Bbb R$ belongs to $T_{\Bbb R}$ iff (if & only if) for every $x\in C$ there exists $r_x>0$ such that $(-r_x+x,r_x+x)\subseteq C.$ With respect to this topology, if $S=[0,1]$ then $[0,a)\cup (a,1]$ belongs to the subspace topology on $S$ because the set $t=(-1,a)\cup (a,2)$ belongs to $T_{\Bbb R}$ and $[0,a)\cup (a,1]=t\cap S.$