Which citation style to use depends on the discipline and professor for whom you are writing it. The two most popular styles are MLA for humanities courses and APA for the sciences. Many social science courses may use the Chicago/Turabian style. When in doubt ask your professor which style he or she prefers.
Each citation style has a handbook describing the details of writing citations for various types of resources. The library has at least one copy of each handbook on reserve or in the reference collection that can be located by searching theonline catalog.
There also are many citation helpers on the internet: