there is a big difference between an on-line degree and a diploma-mill degree.
on the one extreme harvard university is offering on-line degrees. They are expenseive and very difficult. They are also valuable.
on the other extreme is a guy that sends you a diploma he prints in his basement after you send him a check. these have no value.
your first assignment in getting an on-line education is doing your homework about online education.