Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


<TD>

The <TD> Tag is used in <TABLE> for Table Data, which is a single cell inside a Table Row (<TR>).

example.gif (544 bytes)

Table data - Cell 1 Table data - Cell 2
Table data - Cell 3 Table data - Cell 4

htmlcode.gif (606 bytes)
<table border="1" cellpadding="5" width="75%" cellspacing="3">
<tr>
<td align="center">Table data - Cell 1</td>
<td>Table data - Cell 2</td>
</tr>
<tr>
<td align="center">Table data - Cell 3</td>
<td>Table data - Cell 4</td>
</tr>
</table>

<TD> requires a closing </TD> Tag, and the commands that can go inside <TD> are:

ALIGN- Controls whether the data inside a cell is aligned on the LEFT, RIGHT, or CENTER. Default is LEFT.
VALIGN- Controls whether the data inside a cell is aligned on the TOP, BOTTOM, BASELINE, or CENTER. Default is CENTER.
WIDTH- Controls the width of the cell, in pixels or percentage.
HEIGHT- Controls the height of the cell, in pixels or percentage.
NOWRAP- Controls the cell so that any data does not wrap to fit the width of the cell.
COLSPAN- Controls how many columns the cell spans. Default is 1.
ROWSPAN- Controls how many rows the cell spans. Default is 1.
BGCOLOR- Specifies the background color of the cell in Hex or RGB triplet.

The following is for Internet Explorer-only:

BORDERCOLOR- Specifies the border color of the cell in Hex or RGB triplet.
BORDERCOLORLIGHT- Sets an independent lighter color to be displayed on the cell. BORDER is also required, and the color can be in Hex or RGB triplet.
BORDERCOLORDARK- Sets an independent darker color to be displayed on the cell. BORDER is also required, and the color can be in Hex or RGB triplet.
BACKGROUND- Tiles an image throughout the cell, like <BODY> does throughout a page.

See the examples and learn more in
D.J. Quad's Ultimate Table Tutorial!



Up to => Home / Quadzilla / Tag_Ref




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers