Latex table is placed in the bottom of the chapter and not inline

To control the placement of the table, you can use placement specifiers with the table environment. Here are the most common specifiers:

  • h (here) – Place the table at the exact location in the LaTeX code.
  • t (top) – Place the table at the top of the page.
  • b (bottom) – Place the table at the bottom of the page.
  • p (page of floats) – Place the table on a separate page containing only floats like tables and figures.
  • ! – Override the internal parameters LaTeX uses for determining “good” float positions.
\begin{table}[h]
  \centering
  \begin{tabular}{|l|l|}
    \hline
  \end{tabular}
  \caption{My Caption}
  \label{tab:component-days}
\end{table}

Place the letter on the first line with begin surrounding squared brackets []