<!DOCTYPE html>
<html>
<head>
<title>Заголовок документа</title>
<style>
caption {
background: #1c87c9;
color: #fff;
}
.top caption {
caption-side: top;
}
table, th, td {
border: 1px solid #1c87c9;
padding: 3px;
}
td {
background-color: #ccc;
color: #666;
}
</style>
</head>
<body>
<h2>Пример свойства caption-side</h2>
<p>Установлено значение "top":</p>
<table class="top">
<caption>Заголовок</caption>
<tr>
<td>Текст</td>
<td>Текст</td>
</tr>
</table>
</body>
</html>