Glubase - share your knowledge


All / Computers / Programming / HTML / XHTML





  • View Command

HTML / XHTML Reference

HTML / XHTML td definition

Syntax

<td> cell text </td>

Description

The td tag is used to define one specific data cell in a table.

Attributes

Attribute Description
rowspan = number  
colspan = number  
headers = idrefs  
abbr = text  
scope  
axis = cdata  
align

 

The horizontal alignment of the cell.

[ left | center | right | justify | char ]

char  
charoff  
valign

The vertical alignment of the cell.

[top | middle | bottom | baseline ]

nowrap  
width  
height  

Common attributes.

Example

[Try this example yourself]
<table border="1">
  <tr>
    <td>cell top left</th>
    <td>cell top right</th>
  </tr>
  <tr>
    <td>cell low left</td>
    <td>cell low right</td>
  </tr>
</table>

Output

cell top left cell top right
cell low left cell low right
  • Comments

No comments added.