This from a book Algebraic geometry and arithmetic curves, Qing Liu, p.28.
Lemma: Let $\varphi:A\to B$ be a ring homomorphism and $spec(\varphi):spec(B)\to spec(A)$ then if $\varphi$ is surjective then $spec(\varphi)$ induces a isomomorphism from $spec(B) $ onto the closed subset $V(ker \varphi)$ of $spec(A).$
EX: Let $A$ be a ring then the quotient homomorphism $\varphi:A\to A/I$ induces a homomorphism $spec(\varphi):spec(A/I)\to spec(A)$ and $ spec(A/I)\cong V(I)\subseteq spec(A) $ where $V(I):=\{p\in spec(A); I\subseteq p \}$