See also: table, tr, th

Encloses the passed information in a table data tag (<td></td>)

Syntax

JSV_td(cellData [, attributes])

Prototype

cellData.TD([attributes])

Returns

The td returns the passed information in a table data tag. If no data is passed, then the td function returns an empty, single data cell (i.e., <td>&nbsp;</td>).

Parameters

The td function uses the following arguments.

Argument Description
cellData The textual information that is to be enclosed in the table data.
attributes Optional. The attributes that define various properties for the element.

Remarks

See the Web Design Group HTML 4.0 Reference on the table data tag for more information.

Dependencies

JSV_isWhitespace

Example

The following lines of code

document.write( JSV_table( JSV_tr(JSV_td('This is my table header'.bold()), 'BGCOLOR="#00FFFF"')) );

produce