A basic table : table « Tags « HTML / CSS

HTML / CSS » Tags » table 
A basic table
    
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>
  <title>A basic table</title>
</head>

<body>  

<table border="1" align="left">
  <tr>
    <td>Row 1, Column 1</td>
    <td>Row 1, Column 2</td>
  </tr>
  <tr>
    <td>Row 2, Column 1</td>
    <td>Row 2, Column 2</td>
  </tr>
</table>

</body>
</html>

   
    
    
    
  
Related examples in the same category
1.'table' Example
2.Nested tables
3.How tables linearize
4.'col' Example
5.'summary' specifies a brief description of a table
6.basic table
7.Basic table with tr, td
8.A simple XHTML table
9.table tag opens a table
10.Table inline style
11.Calendar table
12.Fixed table first column
13.Make table font bold
14.table font-family: arial, verdana, sans-serif;
15.Table style
16.table color: white;
17.Table layout
18.Table styling
19.Table with shading colors
20.HTML markup for a simple table (continued)
21.providing table alignment and spacing
22.A table with spanned rows and columns
23.Img in a table cell
24.Table with summary
25.Using th for table heading
26.Dividing a table into head, body and footer.
27.A Basic Table with Caption
28.Using the table header attribute
29.table line-height: 1.3em;
30.table padding: 0;
31.table color: #fff;
32.table table-layout: fixed;
33.table caption-side: bottom;
34.HTML markup for a simple table
35.Vertical alignment in table cells
36.Styling table columns
37.A Basic Table 2
38.Adding Text Alignmnet for table
39.Stripe the table
40.Nested css table
41.Structural Table
42.CSS Table Rowspan Demo
43.Spreadsheet data
44.Fixed Table
45.Shrinkwrapped Table
46.All table content is enclosed within the tbody
47.Style for table body
48.Horizontal Stretched Table
49.Using the th element for table headings
50.Table heads, bodies and footers
51.An Accessible Table
52.Selecting cells in body
53.Selecting all tables and cells
54.Selecting all cells
55.'align' specifies the horizontal alignment of the 'table' and 'iframe'
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.