Tables

Domain Hosting image
Web Hosting
Dedicated server
ssl certificate
Web Design image
Email

In print publications, tables are a basic design element. They're used to present data in rows and columns. They make comparative analysis more understandable. They're also used to divide the printed page into sections for layout purposes. Tables should be a basic design element in your Web pages, too.

HTML tables are composed row by row: a row is indicated with the <TR> (table row) tag, and the data is separated with either the <TH> (table header) or <TD> (table data) tags. <TR> tag can be compared to a line break, signaling that the following data starts a new table row.

Building HTML tables is the most complex task of all for an HTML author. The <TABLE> tag is used for this purpose.

The general <TABLE> tag is made up of several smaller tags that format and display a table.

CAPTION - Specifies the table caption.

TR - Specifies a table row.

TH - Specifies a table cell containing a heading.

TD - Specifies a table cell containing data.

Each and every tag mentioned above has some attribute associated with it for alignment. ALIGN attribute is associated with <CAPTION>, <TR>, <TD>, <TH> tags. The <TR> tag has the attribute VALIGN associated with it. Let us create a basic table.

<html>
<head>
<title>Basic Table</title>
</head>
<body>

<h3>Table With Border</h3>
<table Border>
<tr><th>Tag</th><th>Description</th></tr>
<tr><td>Caption</td><td>Specifies a Table Caption</td></tr>

<tr><td>TR</td><td>Specifies a Table Row</td></tr>

<tr><td>TH</td><td>Specifies a Table Cell Containing Heading</td></tr>

<tr><td>TD</td><td>Specifies a Table Data</td></tr>
</table>
</body>
</html>



Domain Name Search

www.


Copyright (C) 2007. Web Domain design hosting. All rights reserved.