Proof. Follows from the case of schemes, see More on Morphisms, Lemma 37.8.7 and étale localization, see Lemmas 75.14.2 and 75.16.2 and Morphisms of Spaces, Lemma 66.30.5. $\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).