Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
<title>CSS Test: Caption-side set to 'top'</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<meta name="assert" content="A caption with a 'caption-side' value of 'top' will be positioned above its table." />
<style type="text/css">
table
{
background: black;
}
caption
{
caption-side: top;
}
</style>
</head>
<body>
<p>Test passes if the "Filler Text" appears above the box.</p>
<table>
<caption>Filler&nbsp;Text</caption>
<tr>
<td>XXXXX</td>
</tr>
</table>
</body>
</html>