Lactic acid acts on the protein in the milk to make yoghurt thick and sour . Fermentation of lactose by these bacteria produces lactic acid , which acts on milk protein to give yoghurt its texture and its characteristic tang .