Be sure to use the citation style specified by your instructor. APA style is common among the social sciences.
A lengthy guide with examples, from the Purdue University Online Writing Lab.
Keep a personal database of books, journal articles, websites, and other resources with a citation management program. These programs will help you organize and keep track of resources as well as automatically format citations.