When a chemical burn occurs from an acid in a laboratory, the affected area should be flushed immediately with plenty of water. Afterward, a mild, weak base like sodium bicarbonate (baking soda) should be applied to neutralize the remaining acid safely.
Using a strong alkali like sodium hydroxide is dangerous because it is highly corrosive and will cause a severe chemical base burn on top of the existing acid burn, making the tissue injury much worse.