XAS involves measuring the absorption of X-rays as they pass through a sample. The absorption spectra can be divided into two main regions: X-ray Absorption Near Edge Structure (XANES) and Extended X-ray Absorption Fine Structure (EXAFS). XANES provides information about the oxidation state and electronic structure, while EXAFS gives details on the local atomic environment such as bond lengths and coordination numbers.