# How to avoid big floats appearing at the end of the document?

I'm writing a document which contains a lot of big figures and tables. Usually I use [htb] for the float position, however, when the float occupies an entire page, it's placed in the next page, O.K!, but when I continue writing, the float jumps to the last page, E. G.:

\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{blindtext}
\usepackage{tabularx}
\usepackage{booktabs}
\begin{document}
\blindtext
\begin{table}[htb]
\centering
\caption{Example table}
\begin{tabularx}{\textwidth}{X}
\toprule
\blindtext
\blindtext
\blindtext\\
\bottomrule
\end{tabularx}
\end{table}
\Blindtext
\end{document}


Why the table is placed in the last page intead of the second page and continues the text in the last page? how can I avoid this?

If you allow the table to be placed on its own page by adding p to the floating arguments, the table will not be pushed to the end.

\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{blindtext}
\usepackage{tabularx}
\usepackage{booktabs}
\begin{document}
\blindtext
\begin{table}[htbp]
\centering
\caption{Example table}
\begin{tabularx}{\textwidth}{X}
\toprule
\blindtext
\blindtext
\blindtext\\
\bottomrule
\end{tabularx}
\end{table}
\Blindtext
\end{document}