When lighting candles, a person has to make the beracha (blessing). The question is, when should they make the beracha? Standard practice whenever performing a mitzvah (commandment) is to make the beracha over la'asiyatan. That is to say, you make the beracha and then you perform the action.
However, many Rishonim (early authorities) and Poskim (halachic decisors) were concerned that when a woman makes the beracha before she lights and says lehadlik ner shel Shabbat (to kindle the Shabbat light), she may at that moment already have accepted Shabbat. The subsequent lighting and extinguishing of the flame of the candle she used to light would then be a chilul Shabbat (desecration of Shabbat). Therefore, many Poskim wrote that the order should be reversed: the candle should be lit first. In some cases, they would even let the flame go out on its own or extinguish it before accepting Shabbat. They would then cover their eyes and make the beracha in order to maintain some level of over la'asiyatan.
This became the more common way among the Ashkenazim (Ashkenazi Jews). But even many Sephardim (Sephardi Jews), like the Ben Ish Chai, recommended doing it this way so as not to get into a problem of chilul Shabbat. However, Hacham Ovadia wrote that the Sephardi practice should be in accordance with Shulhan Aruch: to make the beracha first and then go ahead and light the candles. He was not concerned with the acceptance of Shabbat, because he said that lighting candles does not automatically guarantee an acceptance of Shabbat.
He says it's a good practice that once a year, a woman should declare and make a condition that she never wants to accept Shabbat with the lighting of the candles. Therefore, none of it is considered a problem. She can extinguish the flame after she lights it. And even, like we said yesterday, she can light the candles with the lights off and then afterwards turn the lights on in order to fulfill the mitzvah. And of course, she can do other things as well, provided that she leaves a little bit of time to accept Shabbat for Tosefet Shabbat (extension of Shabbat), which is what we'll talk about tomorrow.