Which gains can short-term and long-term losses offset?

Which gains can short-term and long-term losses offset?

Long-term capital loss cannot be offset against any income other than income from long-term capital gain. Short-term capital loss can be offset against long-term or short-term capital gain.