Question:How can air be trapped to make use of its good insulation properties when preventing convection?
If a space is filled with a material that contains a lot of air, like bubbles in foam, or in the spaces between fibers such as fiberglass, then the material will be a very good insulator.
This diagram shows how much heat is lost by various means from a house.
NB. The exact numbers are different for every house!