latex table captionm code example
Example 1: latex tabular caption
\begin{table}
\begin{tabular}
...
\end{tabular}
\caption{\label{tab:table-name}Your caption.}
\end{table}
Example 2: latex table caption
\begin{table}[position specifier]
\centering
\begin{tabular}{|l|}
... your table ...
\end{tabular}
\caption{This table shows some data}
\label{tab:myfirsttable}
\end{table}