A citation is like a code: it identifies an idea that the writer has gotten from someone else.
A citation is made up of several key components: author, date, title of the article/book chapter, where the work appears, and page number(s). Essentially, it should contain all the information a reader would need to locate that resource themselves.
The format of a given citation will be dictated by the type of resource it is.