HTML <td> Tag


The <td> HTML tag, which stands for "table data," is an essential element used within HTML tables to define individual data cells within rows. It is typically used in conjunction with the <tr> (table row) and <th> (table header) tags to create structured and organized tabular data on web pages. Each 'td' element represents a single cell in a table and contains the actual content or data that is displayed within that cell. Tables are widely used for presenting data in a grid-like format, such as in spreadsheets or lists, making <td> tags fundamental for structuring and formatting information on websites.


Permitted Parents
A <tr> element
Block, inline and text
Start/End Tags
Start tag: required, End tag: required


<table border="1">


Attribute Definition
headers Specifies the table headers related to a cell
scope Defines a way to associate header cells and data cells in a table
abbr Specifies an abbreviated version of the content in a cell
axis Categorizes cells
rowspan Sets the number of rows a cell should span
colspan Specifies the number of columns a cell should span
nowrap Specifies that the content inside a cell should not wrap
width Specifies the width of a cell
height Sets the height of a cell
bgcolor Background color of the td.
align Visual alignment.
Possible values:
  • left
  • center
  • right
  • justify
  • char
valign Vertical alignment.
Possible values:
  • top
  • middle
  • bottom
  • baseline
char Specifies a character to use for aligning text to. Used when align=char.
charoff Specifies an alignment offset (either in pixels or percentage value) against the first character as specified with the char attribute. Used when align=char

Global Attributes

The <td> tag also supports the Global Attributes in HTML5

Event Attributes

The <td> tag also supports the Event Attributes in HTML5

Browser Support

The following table will show you the current browser support for the HTML <td> tag.

Edge Chrome Firefox Opera Safari
Tablets / Mobile
Chrome Firefox Opera Safari Samsung Webview

Last updated by CSSPortal on: 30th September 2023