Apparatus for laboratory preparation of hydrogen should be airtight so that hydrogen cannot mix with air to form an explosive mixture.
As the mixture of air and hydrogen is highly explosive, it should be kept away from the naked flame because when it meets fire, it burns violently.