programming-examples/css/Caption tag caption-side bottom.html
2019-11-15 12:59:38 +01:00

48 lines
919 B
HTML

<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" subLang="en" xml:subLang="en">
<head>
<title>Caption Tag Caption-side Bottom</title>
<style rel="stylesheet" type="text/css">
caption {
font-weight: normal;
text-align: left;
border-style: solid;
border-width: 2px;
border-color: #f89822;
caption-side: bottom;
}
</style>
</head>
<body>
<table>
<caption>Phone Prices</caption>
<tr>
<th>Brand</th>
<th>Price</th>
</tr>
<tr>
<td class="code">Nokia</td>
<td>$200</td>
</tr>
<tr>
<td class="code">Asus</td>
<td>$150</td>
</tr>
<tr>
<td class="code">LG</td>
<td>$180</td>
</tr>
<tr>
<td class="code">Apple</td>
<td class="last">$280</td>
</tr>
</table>
</body>
</html>