X-ray absorption spectroscopy is an element-specific and orbital-specific technique that can probe local atomic and electronic structures, without the need for long-range order. This Primer discusses ...