There are thousands of citation styles in use. Your lecturer may tell you to use a particular one, or allow you to choose one on your own.
Guides for each style will tell you how to format the references:
Many different styles are in use in Trinity College Dublin - for definitive answers you should use the full style manual for each system.
We will demonstrate how this appears in two different referencing systems, namely Harvard (an inline style) and IEEE (a numbered style).
Numbered styles list references in the order they are mentioned, using a digit in the text to refer to the fuller citation at the end.
Here's our example in the IEEE style.
In the text:
This research shows that... .
 G. Shankaranarayanan and R. Blake, “From Content to Context: The Evolution and Growth of Data Quality Research,” ACM J. Data Inf. Qual., vol. 8, no. 2, pp. 1-28, Feb. 2017, doi:10.1145/2996198.