If it's a grease fire in a frying pan, just put the lid on the pan.
When using a fire extinguisher: pick it up, pull pin, squeeze handle and aim at the base of the fire - not the flames. Use a sweeping motion to put out the fire.
Periodically check the pressure gauge or indicator on the extinguisher. If it reads out of the green (low), replace it . You can get them recharged, but replacement is probably more cost effective. Also, you should have an ABC rated extinguisher - A (ash) for things like wood, paper, etc., B (barrels) for flammable liquids, and C (charge) for electrical fires.
Shirley, glad you could get it out before it spread.
Art