table spans : table rowspan « Tags « HTML / CSS

Home
HTML / CSS
1.CSS
2.CSS Controls
3.Form
4.IE Firefox
5.Layout
6.Marquee Attributes
7.Meta Tags
8.Microsoft Attributes
9.Object
10.Reference
11.Style Basics
12.Tags
13.Templates
14.XML
HTML / CSS » Tags » table rowspan 




table spans
  

<?xml version"1.0" encoding="UTF-8"?>
<!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>Using colspan and rowspan</title>
  </head>
  <body>
    <table border="1" summary="Prices for types of pizza by size">
    <caption>Our Pizza Selections</caption>
      <tr>
        <th rowspan="5" scope="row">Pizza<br />Type</th>
        <th colspan="4" scope="col">Size</th>
      </tr>
      <tr>
         <th></th>
         <th scope="col">Small</th>
         <th scope="col">Medium</th>
         <th scope="col">Large</th>
      </tr>
      <tr>
        <td scope="row">Thin Crust</td>
        <td>3.99</td>
        <td>4.99</td>
        <td>6.99</td>
      </tr>
      <tr>
        <td scope="row">Deep Dish</td>
        <td>4.99</td>
        <td>6.99</td>
        <td>8.99</td>
      </tr>
      <tr>
        <td>Stuffed Crust</td>
        <td>5.99</td>
        <td>7.99</td>
        <td>9.99</td>
      </tr>
    </table>
  </body>
</html>

   
  














Related examples in the same category
1.'rowspan' determines how many table rows a cell can span
2.Spanning rows
3.CSS rowspan test
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.