Online courses come with a variety of advantages like the student can take the classes from his home, need not travel, and waste time and availability of reading material and assignments at a keystroke. Besides, the student can learn without inhibitions like fear of failure, nervousness, and shyness. If you are sincere about learning Online training is a lot better.
However, it would be false to say that an Online course is all benefits and no drawbacks. The classroom gives you the seriousness of learning and the responsibility to deliver and learn is higher. But as a medium, it is equally good.
Nonetheless, we would not like to compare self-paced learning with the support of just videos and materials and no live classes, where the student is largely aware of the concepts and the intention is to improve the skill level either by adapting finer methods or extended practice the purpose is completely different.