CSS Property:
caption-side:

Result:
A Table Caption
A table cell A table cell
A table cell A table cell
CSS Code:
table#myTable {
caption-side:top;
}
Click the property values above to see the result
W3Schools.com - Play it