In PAS staining, tissue sections are first oxidized with periodic acid, which converts the 1,2-glycol groups present in carbohydrates into aldehydes. These aldehydes then react with the Schiff reagent, leading to the formation of a magenta or pink color. This reaction specifically highlights the presence of certain types of carbohydrates in the tissue sections.