Lemma 5.14.1. The category of topological spaces has limits and the forgetful functor to sets commutes with them.

Proof. This follows from the discussion above and Categories, Lemma 4.14.11. It follows from the description above that the forgetful functor commutes with limits. Another way to see this is to use Categories, Lemma 4.24.5 and use that the forgetful functor has a left adjoint, namely the functor which assigns to a set the corresponding discrete topological space. $\square$

In your comment you can use Markdown and LaTeX style mathematics (enclose it like $\pi$). A preview option is available if you wish to see how it works out (just click on the eye in the toolbar).