\documentclass{article}
\usepackage{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\title{A Title}
\begin{document}
    \maketitle
    \tableofcontents
    \section{This is section 1}
A paragraph about the content of section 1.
    \section{This is section 2}
A paragraph about the content of section 2.
\end{document}
