There are different kinds of fires. A Class-A fires involve the burning of combustible materials like wood or paper. Most fires fall into this category. Class-B fires are started when a flammable liquid-grease or gasoline-lignites. Class-C fires.
Since fires vary, different kind of fires extinguishers are used for gasoline and oil fires. When turned side down, it sprays a thick foam that blankets the fire. The carbon dioxide extinguishers is also used to fight Class-B fires. When the handle is squeezed, the gas is forced out of the nozzle, smothering the fire.