Online courses often can be more expensive than face-to-face classes.