Lemma 25.23.9. Let $f : X \to S$ be a separated morphism. Any locally closed subscheme $Z \subset X$ is separated over $S$.

Proof. Follows from Lemma 25.23.8 and the fact that a composition of separated morphisms is separated (Lemma 25.21.12). $\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).