Graduation Ceremonies

Why do you move the tassel on your cap from one side to the other after you have been handed your diploma for graduation?
When did this tradition begin?