HTML table
Tables are very common in our daily lives, but how to output tables in our web pages? The
| 1月份 | ¥100 |
| 二月份 | ¥200 |

cellspacing, the distance between cells
cellpadding, the distance between the text and the cell border is in pixels
borderAdd a border to the text Set the border to border=0 and the table will not display the border
The above three attribute values can be set by yourself according to your own requirementsHTML table header
The header of the table is defined using theExample
php.cn
| 月份 | 金额 |
|---|---|
| 1月份 | ¥100 |
| 二月份 | ¥200 |
Program running result:

# colspan and rowspan
#By adding colspan and rowspan attributes to the
Before merging
php.cn
| 单元格 | 单元格 | 单元格 |
| 单元格 | 单元格 | 单元格 |
| 单元格 | 单元格 | 单元格 |
After merging
php.cn
| 单元格 | 单元格 | |
| 单元格 | 单元格 | 单元格 |
| 单元格 | ||
Look at the code running results again:

Look for the rules
##More Multiple instances
This example demonstrates a table without borders.php.cn 这个表格没有边框:
| 200 | 300 |
| 500 | 600 |
这个表格没有边框:
| 200 | 300 |
| 500 | 600 |

Example
This example Demonstrates how to display elements within different elements.php中文网(php.cn)
| 这是一个段落 这是另一个段落 | 这个单元格包含一个表格:
| ||||
这个单元格包含一个列表
| HELLO |

##HTML table tag

