John is quite right about modern day transformers, particularly from china. I believe all new units are required to have a rating shown. This ranges from one to five, or six, in roman numerals, the best being the higher numbers which waste far less power than the poor ones.
Basically the magnetic flux is lost from the unit, instead of being concentrated and used where it is effective or the windings are substandard in the poor units.
Think about things a little and you will realise the turns ratio, to reduce the voltage from 240 to 12V is 20:1. This can theoretically be achieved with 20 turns on the primary and just 1 on the secondary. Or it might be achieved wit 200 and 10,
2000 and 100 or any other combination of that ratio. The lower numbers will not work as well as higher numbers.
Also, the transformer core needs to be designed so as not to retain its magnetism (it needs to change at the mains frequency) and the induced currents (eddy currents) in the core material need to be minimised (that is why cores are laminated and electrically isolated between laminations).
Further design parameters, like isolating the primary (at mains voltage) from the safe secondary voltage, to avoid mains voltage being fed to the output in the case of failed windings, can be arranged with windings separated to each end of the core or one winding enclosing the other. Both work, but the efficiency is not the same!
Good transformer design is not a simple matter as all the above aspects are inter-related!