Switching jobs and keeping your HSA

The HSA stays with you when you change jobs or plans, but contributions depend on being covered by an HDHP.