: The TD Element
Last updated: 2026-09-12
<td>The TD Element
A standard table data cell holding the content at a row/column intersection.
Category Tables
Content Model Flow content
Allowed Parents Any element that accepts flow content
Content Tag Yes — requires closing </td> tag
Status Standard
📝 Syntax
<td>Cell content</td>
⚙️ Attributes
This element supports the global attributes plus the following:
Attribute Value Description
colspanNumber of columns to span.
rowspanNumber of rows to span.
headersIDs of related header cells (complex tables).
▶ Example
Edit the code below and see the live result in the playground:
🌐 Browser Support
Browser
Chrome
Edge
Firefox
Safari
Opera
<td>
✓ v1
✓ v12
✓ v1
✓ v1
✓ v1
Supported in all major browsers
Tip: td vs th: th is a header, td is data — the difference is semantic.
🏷️ Related Tags
💡 Related Cases
More case studies coming soon — check back later.
📚 Related Tutorials
🙏 帮我们做得更好
我们是刚上线的编程教程站,几个人的小团队,精力有限。页面虽经检查,难免还有疏漏——链接失效、排版错乱、内容有误、语言生硬……
如果您发现了,麻烦告诉我们,我们会在收到反馈后第一时间进行修复,再次感谢您的光临 🙏
Last updated: 2026-09-12
<td>The TD Element
A standard table data cell holding the content at a row/column intersection.
| Category | Tables |
|---|---|
| Content Model | Flow content |
| Allowed Parents | Any element that accepts flow content |
| Content Tag | Yes — requires closing </td> tag |
| Status | Standard |
📝 Syntax
<td>Cell content</td>
⚙️ Attributes
This element supports the global attributes plus the following:
| Attribute | Value | Description |
|---|---|---|
colspan | Number of columns to span. | |
rowspan | Number of rows to span. | |
headers | IDs of related header cells (complex tables). |
▶ Example
Edit the code below and see the live result in the playground:
🌐 Browser Support
| Browser | |||||
|---|---|---|---|---|---|
| <td> | ✓ v1 | ✓ v12 | ✓ v1 | ✓ v1 | ✓ v1 |
| Supported in all major browsers | |||||
Tip: td vs th: th is a header, td is data — the difference is semantic.
🏷️ Related Tags
💡 Related Cases
More case studies coming soon — check back later.
📚 Related Tutorials
🙏 帮我们做得更好
我们是刚上线的编程教程站,几个人的小团队,精力有限。页面虽经检查,难免还有疏漏——链接失效、排版错乱、内容有误、语言生硬……
如果您发现了,麻烦告诉我们,我们会在收到反馈后第一时间进行修复,再次感谢您的光临 🙏
如果您发现了,麻烦告诉我们,我们会在收到反馈后第一时间进行修复,再次感谢您的光临 🙏