There are several styles in which the sources of an assignment should be cited. The most popular of these styles are MLA, APA, Chicago etc. All these styles have their own set of guidelines. If your professor has not assigned a particular style, you can choose one and use it consistently.