Fire extinguishers are designed to tackle specific types of fire. There are six different classes of fire and several different types of fire extinguishers.
Powder extinguishers are a good multi-purpose fire extinguisher because they can be used on Class A, B and C fires. They can also be used on fires involving electrical equipment however, they do not cool the fire so it can re-ignite. Powder extinguishers can also create a loss of visibility and may create breathing problems. They are not generally recommended for use inside buildings unless there is absolutely no alternative.
CO2 extinguishers are ideal for places with a lot of electrical equipment such as offices or server rooms because they are safe to use on fires involving electrical apparatus. Carbon dioxide extinguishers do not leave any residue, unlike a foam extinguisher. They can also be used on Class B fires, those involving flammable liquids such paraffin or petrol. CO2 extinguishers work by smothering the fire and cutting off the supply of air.