\documentclass{article}
\begin{document}
\tableofcontents
\section{Animals}
This document defines sections.
\subsection{Domestic}
This document also defines subsections.
\subsubsection{cats and dogs}
Cats and dogs are Domestic animals.
\section*{Appendix A}
The section with a * is not given a number.
\end{document}


