Your own contributions are an “above-the-line” deduction, so they lower your taxable income even if you do not itemize.
Others, such as relatives, can contribute for you, and you still get the deduction.
The tax benefits continue after the money goes in. Growth in the account is tax-free, and withdrawals for qualified medical expenses are tax-free too.