How to set the fixed width of columns?
<p>Hello everyone I am creating a table on latex my code looks like this:</p>

<pre><code>\begin{table}[H]
\centering
\caption{caption}
\label{my-label}
\begin{tabular}{lll}
\hline
\multicolumn{3}{|c|}{\cellcolor[HTML]{34CDF9}{\color[HTML]{000000} Matriz confusión  Genero.}} \\ \hline
\multicolumn{1}{|l|}{}        &amp; \multicolumn{1}{l|}{M}       &amp; \multicolumn{1}{l|}{F}        \\ \hline        
\multicolumn{1}{|l|}{M}        &amp; \multicolumn{1}{l|}{43}       &amp; \multicolumn{1}{l|}{7}        \\ \hline
\multicolumn{1}{|l|}{F}        &amp; \multicolumn{1}{l|}{11}       &amp; \multicolumn{1}{l|}{39}       \\ \hline
\end{tabular}
\end{table}
</code></pre>

<p>It works well but the problem comes when I try to fix the width of the columns I tried: </p>

<pre><code>\begin{tabular}{l{2cm}|l{2cm}|l{2cm}}
</code></pre>

<p>The result is the same table, with variable length of columns, I would like to fix the length of the columns, I would like to appreciate any suggestion to solve this problem.</p>