Every string light runs on one of three systems, and the choice determines everything else about where you can put it.
Plug-in strings
A mains string plugs into a socket or uses a long lead. This is the brightest option and the most consistent, because it does not dim as the batteries drain or as the panel loses light. It is the right answer for anything permanently installed, for a long run along a fence, and for anything you expect to look good in midwinter when there is little sun to charge anything.
The constraint is that you need a socket within reach. A fifty-foot patio string with a fifteen-foot lead leaves about thirty-five feet of lit run, which covers most small gardens. Beyond that you are into extension leads, and daisy-chained strings on one socket are the most common cause of flicker and premature failure.
Solar strings
A solar string has a small panel and a rechargeable battery. The panel charges during the day and a light sensor switches the lights on at dusk. The appeal is obvious: no cable, no socket, and you can move the whole thing to a different corner of the garden next summer.
Solar fairy lights are decorative, not functional. A good panel on a full summer charge will happily light a pergola, a garden path or a windowsill, and that is genuinely lovely. What they will not do is light a seating area the way a mains string does. If you are planning to eat outside after dark, use mains for the dining area and solar for the borders.
The detail that matters most is bulb count per metre. The are dense enough to read as a continuous glowing line rather than a row of visible dots, which is what makes solar strings look good at short lengths. The cover more ground for less, and look correspondingly sparser up close.
Battery and USB strings
Small strings that run from a battery pack or a USB port are the third option, and they are the best choice for windowsills, wreaths, small trees and anything seasonal you put up and take down. The are a good illustration of why the timer matters — it stops them draining flat while you are not looking at them.
Note the size of the battery pack on any of these. It is usually the part that gets forgotten, and a large one on a string meant for a small table looks clumsy.