See this example properly formatted in the QUT Cite tool.
There are two parts to correct referencing.
This goes in your text, near the piece of work you are referring to or using. In author-date styles this is the author, year, and, often, the page number. In numbered styles you place a superscript number (start at 1) or a number in brackets (1) at the end of the information you are citing.
For more detail about in-text citation check:
The reference list provides all the information the reader needs to identify the source you used in your text.
Every reference includes four basic elements that help the reader identify the source you cited.
For more detail about formatting references check:
For details about formatting your reference list check: