Set style for table caption
<!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">
<head>
<title></title>
<style type="text/css">
table caption {
font: 1.5em Georgia, "Times New Roman", Times, serif;
padding: 1em;
}
</style>
</head>
<body>
<table id="shoppingcartTable" summary="List of products">
<caption>Shopping Cart Listing - <strong>Subtotal: $45.16</strong>;
changed quantities? <input type="submit" value="Update price(s)" /></caption>
</table>
</body>
</html>
Related examples in the same category