Help Center

Local Navigation

HTML element: <table>

Availability

Partial support as of BlackBerry® Device Software version 4.0.

Full support as of BlackBerry Device Software version 4.6.

Parameters

The <table> element specifies the start of a table; it encloses <tbody>, <tfoot>, and <thead> elements, or <caption> and <tr> elements.

Differences between HTML, XHTML, and XHTML-MP

The align and bgcolor attributes are deprecated in HTML 4.01. XHTML and XHTML-MP (strict) do not support these attributes.

XHTML-MP also does not support the presentation attributes associated with table (that is, border, cellpadding, cellspacing, frame, rules, and width). You must use CSS styles to control the appearance of tables.

Attribute

Attribute

Value(s)

Description

Supported in

align

center

left

right

Deprecated. This attribute specifies the alignment of the table.

4.6 or later

background

URI

Deprecated. This attribute defines an image used as the background.

4.6 or later

bgcolor

color

Deprecated. This attribute specifies the background color for the table.

4.6 or later

border

pixels

This attribute specifies the thickness of the border around the outside edges of the table and the inner borders of the table cells.

4.0 or later

cellpadding

length

This attribute specifies the number of pixels of whitespace to add between cells.

4.0 or later

cellspacing

length

This attribute specifies the number of pixels of whitespace that is rendered between each adjacent cell.

4.0 or later

frame

above

below

border

box

hsides

lhs

rhs

void

vsides

This attribute specifies which sides of the table cells are visible.

4.6 or later

rules

all

col

group

none

rows

This attribute specifies where rules will be placed in the table.

4.6 or later

summary

text

This attribute provides summary text describing the contents of the table.

4.6 or later

width

length

This attribute sets the width of the table, either in pixels or as a percentage of the browser window.

4.0 or later

Common attributes

The <table> element supports the following common attributes:

  • class
  • dir
  • id
  • lang
  • style
  • title

4.6 or later

Event attributes

The <table> element supports the following event attributes:

  • onclick
  • onkeydown
  • onkeypress
  • onkeyup
  • onmousedown
  • onmousemove
  • onmouseout
  • onmouseover
  • onmouseup

4.6 or later

Index


Was this information helpful? Send us your comments.