'scope' specifies the group of cells to which header information on the current cell refers : th « Tags « HTML / CSS






'scope' specifies the group of cells to which header information on the current cell refers

   
    
<HTML>
<BODY>
<table border="1">
   <tr>
      <th scope="colgroup">Header 1</th>
      <th scope="colgroup">Header 2</th>
      <th scope="colgroup">Header 3</th>
      <th scope="colgroup">Header 4</th>
      <th scope="colgroup">Header 5</th>
      <th scope="colgroup">Header 6</th>
   </tr>
   <tr>
      <th scope="rowgroup">Row 1</th>
      <td>Cell</td>
      <td>Cell</td>
      <td>Cell</td>
      <td scope="col">Cell info 1</td>
      <td>Cell</td>
   </tr>
   <tr>
      <th scope="rowgroup">Row 2</th>
      <td>Cell</td>
      <td>Cell</td>
      <td>Cell</td>
      <td>Cell</td>
      <td>Cell</td>
   </tr>
   <tr>
      <th scope="rowgroup">Row 3</th>
      <td>Cell</td>
      <td>Cell</td>
      <td>Cell</td>
      <td>Cell</td>
      <td>Cell</td>
   </tr>
   <tr>
      <th scope="rowgroup">Row 4</th>
      <td scope="row">Cell info 2</td>
      <td>Cell</td>
      <td>Cell</td>
      <td>Cell</td>
      <td>Cell</td>
    </tr>
</table>
</BODY>
</HTML>  
    
      
        
    
    
  








Related examples in the same category

1.'th' Example
2.'axis' Example
3.table header tag
4.thead is the first section of a table. It formats the table header area.
5.Basic table with th tag
6.Style for table header
7.Nested table header
8.Table header style
9.Table header format
10.Table header column span
11.Table header and cell overflow hidden
12.Two level of table header
13.table header height: 50px;
14.Three row header
15.Grouped table header
16.Selecting cells in head
17.th height: 29px;
18.th width: 6em;
19.th colspan="2"
20.th, td overflow: hidden;