Set style for table caption : table caption : Table Style HTML CSS TUTORIALS


HTML CSS TUTORIALS » Table Style » table caption »

 

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>

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Table Style
» table caption