The fabrication of nanocomposite thin films with TiO2 nanoparticles by the layer-by-layer deposition method for multifunctional cotton fabrics