Different citation formats are used by different academic disciplines. Professors will often require a particular format, but if they have no preference these guidelines may be helpful:
Each discipline has a preferred citation style. Various websites point to the desired citation style for each discipline.