Headspace sampling is a technique used in gas chromatography to analyze volatile organic compounds (VOCs) from liquid or solid samples. There are two types of headspace sampling: static, which does not require a trap, and dynamic, which does, allowing for the concentration of analytes from a sample. Applications include pharmaceutical testing, environmental monitoring, chemical analysis, and food quality assessment.