I'm trying to learn how to typeset caption tables but...
why doesn't this text appear between tables?

\documentclass{article}
\usepackage{subcaption}
\begin{document}
\begin{table}
\begin{subtable}{.5\linewidth}\centering
{\begin{tabular}{ccc}
\ $a$ & $b$ & $c$ \\
\hline 0 & 0 & 0 \\
\ 1 & 1 & 1 \\
\end{tabular}}
\caption{A subtable}\label{tab:1a}
\end{subtable}%
%
\begin{subtable}{.5\linewidth}\centering
{\begin{tabular}{c c c}
\ $a$ & $b$ & $c$ \\
\hline 0 & 0 & 0 \\
\ 1 & 1 & 1 \\
\end{tabular}}
\caption{Another subtable}\label{tab:1b}
\end{subtable}
\caption{A table}\label{tab:1}
\end{table}
Why is not this text between the tables?
\begin{table}
\begin{subtable}{.5\linewidth}\centering
{\begin{tabular}{ccc}
\ $a$ & $b$ & $c$ \\
\hline 0 & 0 & 0 \\
\ 1 & 1 & 1 \\
\end{tabular}}
\caption{A subtable}\label{tab:1a}
\end{subtable}%
%
\begin{subtable}{.5\linewidth}\centering
{\begin{tabular}{c c c}
\ $a$ & $b$ & $c$ \\
\hline 0 & 0 & 0 \\
\ 1 & 1 & 1 \\
\end{tabular}}
\caption{Another subtable}\label{tab:1b}
\end{subtable}
\caption{A table}\label{tab:1}
\end{table}
\end{document}
\begin{table}[htb]for both tables. – Jun 11 '14 at 13:16