Distance learning includes all forms of learning that are done 'at a distance'. That is, not in the same room as the teacher. So this includes correspondence courses, guided self-study etc. Online learning is using the internet. Electronic learning is where the course materials are presented on a computer or other electronic device, but not necessarily on the internet (e.g.on CD / DVD)
So, they are all related, but not necessarily the same. Distance learning (correspondence courses) existed long before computers and the age of the internet.
I would only use 'virtual' to relate to classes, schools etc. You cannot have virtual learning (although some people mistakenly use this expression) as virtual in this context means 'not real' or 'simulated' which would mean that no real learning had taken place!