Quackit Logo

FREE Hosting!

With every domain name you register with ZappyHost, you get FREE hosting.

PLUS you get:

  • FREE Website Builder
  • FREE Blog
  • FREE Starter Web Page
  • FREE Email Account
  • & much more! (Total value $123 for FREE!)
Get your FREE hosting today! >>

HTML table Tag

Print Version
 

The HTML table tag is used for defining a table. The table tag contains other tags that define the structure of the table.

Example
<table border = "1">
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
</table>
Attributes:
Attributes specific to this tag:
summaryProvides a summary of the table's structure and purpose for non-visual user agents.
alignVisual alignment of the table (i.e. left, center, right). This attribute is deprecated, use CSS instead.
widthWidth of the table.
Other Attributes:
AttributeDescription
dirSpecifies the direction of the text
classDocument wide identifier.
idDocument wide identifier
langLanguage code
titleSpecifies a title to associate with the element. Many browsers will display this when the cursor hovers over the element (similar to a "tool tip").
styleInline style (CSS)
bgcolorBackground color of the table.

Note: This attribute is deprecated, use the CSS background-color property instead.

frameUsed in conjunction with the border attribute, specifies which side of the frame that makes up the border surrounding the table is displayed. Possible values:
  • void: None are displayed. This value is the default
  • above: Top side of the frame
  • below: Bottom side of the frame
  • hsides: Top and bottom sides
  • vsides: Right and left sides
  • lhs: Left side
  • rhs: Right side
  • box: All sides
  • border: All sides
rulesUsed in conjunction with the border attribute, specifies which rules appear between the cells of the table. Possible values:
  • None: None are displayed. This value is the default
  • groups: Rules appear between row groups and column groups
  • rows: Between rows
  • cols: Between columns
  • all: Between all rows and columns
borderSpecifies the width of the border around the table. For no border, use 0 (zero).
cellspacingSpecifies the space between cells.
cellpaddingSpecifies the space between the cell borders and their contents
onclickIntrinsic event (see event handlers)
ondbclickIntrinsic event (see event handlers)
onmousedownIntrinsic event (see event handlers)
onmouseupIntrinsic event (see event handlers)
onmouseoverIntrinsic event (see event handlers)
onmousemoveIntrinsic event (see event handlers)
onmouseoutIntrinsic event (see event handlers)
onkeypressIntrinsic event (see event handlers)
onkeydownIntrinsic event (see event handlers)
onkeyupIntrinsic event (see event handlers)
Try it yourself! HTML Editor


Also see the complete list of HTML tags


Enjoy this website?

  1. Link to this page (copy/paste into your own website or blog):
  2. Add this page to your favorite social bookmarks sites:
                     
  3. Add this page to your Favorites

Oh, and thank you for supporting Quackit!