Im new to this, I just have a simple question.
How to declare a table let's say after I mention it in the text.
What I want:
Blah blah blah blah blah blah blah blah blah as shown in Table ~\ref{tab:table_Languages}
MY TABLE CAPTION
| Rank | Language | Share | Trend |
-----------------------------
....
What I have:
MY TABLE CAPTION
| Rank | Language | Share | Trend |
-----------------------------
.....
Blah blah blah blah blah blah blah blah blah as shown in Table ~\ref{tab:table_Languages}
What I use:
\begin{table}
\centering
\label{tab:table_Languages}
\setlength{\tabcolsep}{0.3cm}
\begin{tabular}{|c|p{2cm}|l|l|}
\hline
\textbf{Rank} & \textbf{Language} & \textbf{Share} & \textbf{Trend} \\
\hline
\textbf{1} & Python & 26.42\% & +5.2\% \\ \hline
\textbf{2} & Java & 21.20\% & -1.3\% \\ \hline
\textbf{3} & JavaScript & 08.21\% & -0.3\% \\ \hline
\textbf{4} & C\# & 07.57\% & -0.5\% \\ \hline
\textbf{5} & PHP & 07.34\% & -1.2\% \\ \hline
\textbf{6} & C/C++ & 06.23\% & -0.3\% \\ \hline
\textbf{7} & R & 04.13\% & -0.1\% \\ \hline
\end{tabular}
\end{table}
UPDATE:
Adding \caption{Best ranking Programming Languages in 2019.} creates a nice caption above my example. However it doesn't fix the position and also the value of the counter for the tables is not right, as it gets the Chapter number for a reason as shown in the figure.


table... – Mensch Mar 06 '19 at 19:48figureandtableenvironments, please see the posting How to influence the position of float environments like figure and table in LaTeX. – Mico Mar 06 '19 at 20:19\documentclassdirective. – Mico Mar 06 '19 at 20:49