The light is made by a small light bulb. In the 20th century it was usually an incandescent bulb. Nowadays most use LEDs, which work slightly differently. In 1896, the first dry cell battery was invented. Unlike previous batteries, it used a paste electrolyte instead of a liquid. This was the first battery suitable for portable electrical devices, as it did not spill or break easily and worked in any orientation. Sometimes the electricity comes from a small generator instead of a battery.
Hundreds of years ago, people used candles for all indoor light. This was expensive, and once the candle was gone, you would have to buy or make a new one or be stuck in the dark. When electricity was discovered and the light bulb was invented, David Misell, a British man working in Hubert's New York shop in 1898, came up with the idea of a light bulb that you could take with you, anywhere you wanted to go. Then, the torch was invented.