A caption puts the table inside a table environment: \caption alone raises an error.
table
\caption
The code this editor produced is sent along, so we can reproduce it.