Cosmetics contain a wide array of ingredients, including preservatives, surfactants, pigments, thickeners, emulsifiers, and potentially carcinogens, with some ingredients like formaldehyde and parabens used as preservatives, while others like surfactants aid in cleansing and foaming.