1. Home
  2. Computing & Technology
  3. Web Design / HTML

<td></td>

By , About.com Guide

<td> description:

The <td> element defines table cells.

<td> Web Browser Support:
<td> Attributes:
<td> End Tag:
</td> optional
Contents:

Usually text. The following tags are valid within the <td> tag:
a, abbr, acronym, address, applet, b, basefont, bdo, big, blockquote, br, button, center, cite, code, dfn, dir, div, dl, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, i, iframe, img, input, isindex, kbd, label, map, menu, noframes, noscript, object, ol, p, pre, q, s, samp, script, select, small, span, strike, strong, sub, sup, table, textarea, tt, u, ul, var

<td> Valid Context:

The <td> tag is valid within the following tags:
tr

<td> Usage:
  • basic table
    <table border width="200">
    <tr><td>
    column 1
    </td><td>
    column 2
    </td></tr>
    </table>
<td> Special Notes:
  • While you can omit the ending tag, tables are easier to read when they are present, and it gives you better control over style tags.
  • When using nested tables, if the td tags are not closed, the browsers may become confused as to which table elements go with which table.
More <td> Information:

Return to XHTML element (HTML Tags) Library

Explore Web Design / HTML
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Web Design / HTML

©2009 About.com, a part of The New York Times Company.

All rights reserved.