Since about 12 years ago Moodle (software) is being developed so as to give on-line courses. It started in Australia, at Curtin University, with Martin Dougiamas, who realized about how important it was to incorporate the computers to the teaching process.
As it is free software it enjoys a great support of developers, which makes the product better and better for students, teachers and developers all over the world.