As others have written above, I think it is necessary to clarify what is meant by “online”.
Online as in a distance-ed version of an on-campus course?
Online as in a distance-ed version of an on-campus degree?
Online as in a distance-ed course that doesn’t have an on-campus equivalent?
Online as in a distance-ed degree program that doesn’t have an on-campus equivalent?
Provided those are offered by a fully-accredited college/university, they are going to be treated as any other course or degree program offered by that college/university.
When the online coursework is offered in a non-credit version, or by an unaccredited college/university, then it is a whole different thing.