1. Computing

Discuss in my forum

<table></table>

By , About.com Guide

TABLE description:

The <table> tag creates tables inside Web documents.

TABLE Web Browser Support:

HTML Versions

TABLE Attributes:

Global attributes, event attributes and:

Plus a few other attributes that are not part of the specification, but will work with your table. Most of these attributes have been deprecated in favor of style sheets.

TABLE End Tag:

</table> REQUIRED

Contents:

tabular data. The following tags are valid within the table tag:
caption, col, colgroup, tbody, tfoot, thead

TABLE Valid Context:

The table tag is valid within the following tags:
blockquote, body, button, center, dd, div, fieldset, form, iframe, li, noframes, noscript, object, td, th

TABLE Usage:

basic table
<table border width="200">
  <tr>
    <td>
      column 1
    </td>
    <td>
      column 2
    </td>
  </tr>
</table>

complex table

<table cellspacing="2" cellpadding="2" frame="below" rules="groups" summary="This complex table contains three columns of data and two rows, and is meant to demonstrate table effects">
  <caption>This is a more complex table</caption>
  <colgroup span="2" />
  <colgroup span="1" id="group2" />
  <tr>
    <th>row 1 column 1 group 1</th>
    <th>row 1 column 2 group 1</th>
    <td>row 1 column 3 group 2</td>
  </tr>
  <tr>
    <td>row 2 column 1 group 1</td>
    <td>row 2 column 2 group 1</td>
    <td>row 2 column 3 group 2</td>
  </tr>
</table>

TABLE Special Notes:

  • In XHTML, tables are meant to display only tabular data. If you want to layout your Web page, you should use style sheets.
  • Keep in mind that tables are not very accessible. Use features like caption and summary to make it more accessible.

More table Information:

©2013 About.com. All rights reserved.