Table taking up entire page [closed]

I have a table in my article which is actually only about half page long but is taking up the full-page. There is supposed to be text before/after it, but it is all flowing to the next page as show below:

Below is the code that I am using to place the table:

\begin{table}
\caption{Modeling results obtained from binary logistic regression}
\label{tab:modelResults}
\begin{tabular}{|l|l|p{0.43\textwidth}|l|l|l|}
\hline

//table text here..

\end{tabular}
\end{table}

• you will have to upload your entire code as a MWE Sep 10, 2020 at 5:39
• As MWE try the following: \documentclass{article} \usepackage{lipsum} \begin{document} \lipsum[1] \begin{table}[ht] \centering \caption{Modeling results obtained from binary logistic regression} \label{tab:modelResults} \begin{tabular}{|l|l|p{0.43\textwidth}|l|l|l|} \hline 1 & 2 & \lipsum[11] & 3 & 4 & 5 \\ \hline \end{tabular} \end{table} \lipsum[2] \end{document}. Please extend your code fragment to similar MWE (Minimal Working Example), which reproduce your problem. Sep 10, 2020 at 5:50
• I was able to solve it by replacing \begin{table} by \begin{table}[h] Sep 10, 2020 at 8:39
• I’m voting to close this question because it was solved in the comments. Aug 14 at 12:19

\begin{table}[!ht]