A LaTeX document is made up of two main parts: preamble and body, some may consider bibliography as the third part.
Preamble: starts between \documentclass{ } and \begin{document}. You will put commands such as \usepackage commands (that will affect entire document), \title{}, \author{} and any customized commands in this part.
Body: is where you input your content, it starts with \begin{document} and ends with a matching \end{document}. You can include commands for abstract, section, subsection and etc.
Bibliography: includes bibliography style and BibTeX file name, which are usually placed before \end{document}. The bibliography style specifies which reference style to use when making references and citations, and the BibTeX file stores all reference entries. When citing, LaTex will generate the reference list and citations from the file.