I'm using TexWorks and am trying to use the following table:
\begin{table}[]
\centering
\begin{tabular}{ll}
\( a+b=b+a \) & \( a \cdot b = b \cdot a \) \\
a & a \\
a & a
\end{tabular}
\end{table}
The table renders in the beginning of the text for unknown reasons. See:
Perhaps it's a consequence of the header of my code? It is as follows:
\documentclass[11pt,twoside,a4paper]{article}
\usepackage[a4paper, portrait, margin=0.5in]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{cancel}
\usepackage{amsmath}
\usepackage{amsfonts}
I didn't forget the \begin{document} and \end{document}. I just ommited it.

\begin{table}[htb]– Aug 28 '15 at 01:03\begin{table}[h]– JPi Aug 28 '15 at 01:04\begin{center}\begin{tabular}....\end{tabular}\end{center}instead. – Torbjørn T. Aug 28 '15 at 06:22