- Make yourself more familiar with LaTeX! Read some introductory text about it. For example No so Short Introduction ... or LaTeX for beginners.
- Latex is not Word, it care for nice typography ...
- Please, consider comments below question
- MWE (Minimal Working Example) below show, what can happen, if you not use
floats in your document:

(red lines show page layout)
\documentclass{article}
\usepackage{tikz} % for show images
\usetikzlibrary{ducks} % for show images
\usepackage{caption}
\usepackage{lipsum}
\begin{document}
\lipsum[66]
\begin{center}
\begin{tikzpicture}[scale=4]
\duck[glasses=red]
\end{tikzpicture}
\captionof{figure}{Prof. Duck disagree that his picture not appear in float environment}
\end{center}
\lipsum[66]
\begin{center}
\captionof{table}{Prof. Duck also disagree that tables are not in float environment}
\begin{tabular}{|c|c|c|c|}
\hline
\begin{tikzpicture}
\duck[graduate, xscale=-1]
\end{tikzpicture}
& \begin{tikzpicture}
\duck[graduate]
\end{tikzpicture}
& \begin{tikzpicture}[scale=3]
\duck[squareglasses]
\end{tikzpicture} \
\hline
\end{tabular}
\end{center}
\lipsum[1-4]
\end{document}
Similar result you will get if you will use floats with [H] options:
\documentclass{article}
\usepackage{tikz} % for show images
\usetikzlibrary{ducks} % for show images
\usepackage{caption}
\usepackage{float} % for removing floating of floats
\usepackage{lipsum}
\begin{document}
\lipsum[66]
\begin{figure}[H] % <---
\centering
\begin{tikzpicture}[scale=4]
\duck[glasses=red]
\end{tikzpicture}
\caption{Prof. Duck disagree that his picture not appear in float environment}
\end{figure}
\lipsum[66]
\begin{table}[H] % <---
\centering
\caption{Prof. Duck also disagree that tables are not in float environment}
\begin{tabular}{|c|c|c|c|}
\hline
\begin{tikzpicture}
\duck[graduate, xscale=-1]
\end{tikzpicture}
& \begin{tikzpicture}
\duck[graduate]
\end{tikzpicture}
& \begin{tikzpicture}[scale=3]
\duck[squareglasses]
\end{tikzpicture} \
\hline
\end{tabular}
\end{table}
\lipsum[1-4]
\end{document}

At both example observe empty space at bottom of the first page!
\makeatletter \renewcommand*{\fps@figure}{H}\makeatotherin the preamble. See also https://tex.stackexchange.com/a/370654/2388 – Ulrike Fischer May 10 '23 at 09:04figureenvironment. – cabohah May 10 '23 at 09:05\caption, if you always use "the following example shows"? And without\captionafiguredoes not make any sense. And with KOMA-Script classes you don't need thefloatpackage. Just use thefigure-environment. – cabohah May 10 '23 at 09:37\captionof– maybe even harder? So no, I do not agree, that in such a casefloatis the better choice. I also do not say, it is the worse choice. I'm just saying, both solutions have their place. And the user has to decide which one is better in the concrete case. – cabohah May 10 '23 at 11:47