What are the advantages and disadvantages of studying an online course?

With the Covid-19 outbreak, there has been a great increase in the number and variety of online courses available to students. This has been welcomed as a great opportunity by many, although, some see these courses as less effective. What are the advantages and disadvantages of studying an online course?