Tables are handled like figures in that they are inserted within a specific environment {tabular}
A lot can be done with tables. For more extensive documentation see: https://www.sharelatex.com/learn/Tables
The basics:
\begin{table}[htbp]
\begin{tabular}{column specification}
Table Content
\end{tabular}
\end{table}
Column specification is how you want the content to be justified.
c = centered
r = right aligned
l = left aligned
So \begin{tabular}{|c|c|c|c|} would contain four columns of centered content.
Rows are separated by & and end with \\. First cell & Second cell & Third cell & Fourth cell \\
\begin{table}[htbp]
\begin{tabular}{|c|c|c|c|}
First cell & Second cell & Third cell & Fourth cell \\
\end{tabular}
\end{table}
Or you can use the LaTeX Table Generator, which will automatically produce that LaTeX code.
|