Here is the definition of closed immersion given on Stacks Project.
In Hartshorne (II, Section 3), a closed immersion of schemes is only defined by the first two properties. What does "locally generated by sections" mean? And why is it considered to be an essential characteristic of a closed immersion?
