html 5中的<table>标记

<table>标记用于在HTML文档中插入表。
<table>标记由行和列组成。
在HTML中,我们将表行定义为<tr>和列<td>,也是由<th>定义的表标题。
在表格标记中,我们可以设置许多属性磁带,如表边框,单元格跨度,行跨度等。

HTML5 <table>标记的示例

<html>
  <table border="1">
     <tr>
        <th> Name</th>
        <th>Age</th>
     </tr>
      <tr>
        <td>Jack</td>
        <td>46</td>
      </tr>
<html>
日期:2020-04-11 23:04:18 来源:oir作者:oir