Why Glass is attacked only by Hydrofluoric acid(HF)?
Hydrofluoric acid is a weak inorganic acid but, it is corrosive in nature and also highly penetrating due to small size of F atom.
Hence unlike other acids(HCl, HBr etc) it attacks glass with the formation of fluorosilicate ions [SiF6]2-
The reaction involved can be shown as:
SiO2 + 6HF → [SiF6]2- + 2H+ + 2H2O