Online learning is expanding beyond the classroom, offering students and adults greater flexibility and new pathways to careers.