If we make a website, Table tag elements are an indispensable part, then let’s analyze how to use Table, tr, td, th table tag elements, and how to use themNotesWhat's there.
table table syntax and structure
<table> <tr> <td> </td> <td> </td> <td> </td> </tr> </table> 或者 <table> <tr> <th> </th> <th> </th> <th> </th> </tr> </table>
In the above two table structures, td and th are used, and they can be used without any difference.
Instructions for using the table tag
For example, a spreadsheet-type data table.
Table table label usage scenario
table table practical application place
Table tr td th table use case
<table width="300" border="1" cellspacing="0"> <tr> <th>班级</th> <th>日期</th> <th>标题</th> </tr> <tr> <td>一班</td> <td>2012-5-10</td> <td>标题1</td> </tr> <tr> <td>二班</td> <td>2012-5-20</td> <td>标题2</td> </tr> </table>
Introduced so many I believe Everyone also has a certain knowledge and understanding of the label elements of the table. For more exciting information, please pay attention to the php Chinese website Other related articles!
Related reading:
How to know whether the browser supports html5
How to use the
The above is the detailed content of How to use table tag elements such as Table, tr, td, and th. For more information, please follow other related articles on the PHP Chinese website!