html四行三列表格代码
时间: 2023-11-14 14:46:58 浏览: 101
Sure, here is an example of a four-row three-column table in HTML:
```html
<!DOCTYPE html>
<html>
<head>
<titleTable Example</title>
</head>
<body>
<table>
<tr>
<th>Header 1</th>
<th>Header 2</th>
<th>Header 3</th>
</tr>
<tr>
<td>Row 1, Column 1</td>
<td>Row 1, Column 2</td>
<td>Row 1, Column 3</td>
</tr>
<tr>
<td>Row 2, Column 1</td>
<td>Row 2, Column 2</td>
<td>Row 2, Column 3</td>
</tr>
<tr>
<td>Row 3, Column 1</td>
<td>Row 3, Column 2</td>
<td>Row 3, Column 3</td>
</tr>
<tr>
<td>Row 4, Column 1</td>
<td>Row 4, Column 2</td>
<td>Row 4, Column 3</td>
</tr>
</table>
</body>
</html>
```
This code will create a table with four rows and three columns. The first row is reserved for headers (th elements), while the remaining rows contain data (td elements). Feel free to modify the content of the table according to your needs.
阅读全文