Suppose $X$ is a scheme, and $T$ its closet subset. I want to ask that is there a canonical way to obtain a quasi-coherent $\mathscr O_X$-ideal $I$ such that $T=supp \mathscr O_X/I$? This is the inverse question of the construction of closed subschemes. Could you give a counterexample or a proof?
Recently I'm reading algebraic geometry but I don't know why the inverse image of a closed subscheme is also a closed subscheme. So I thought that I may need to solve the above question. Or could you give another way to show "the inverse image of a closed subscheme is also a closed subscheme?" Thank you.