In wiki article of "compact spaces", they state that the set $\mathbb{Q} ∩ [0,1]$ is not compact because the sets of rational numbers in the intervals $[0, \frac{1}{π} - \frac{1}{n}]$ and $[ \frac{1}{π}+ \frac{1}{n}, 1]$ covers all the rationals in $[0,1]$ but this cover does not have finite subcover; these sets are open in the subspace topology even though they are not open as subsets of $\mathbb{R}$.
I don't get it! How is $[0, \frac{1}{π} - \frac{1}{n}]$ open in subspace topology for each $n∈ \mathbb{N}$ ? In particular, I need to know what are the open sets under subspace topology? What are the closed sets in subspace topology? What are the compact sets in subspace topology?