" in php is a tag element in HTML, used to define rows in the table. The tr element contains one or more th or td elements. tr cannot exist alone and is equivalent to the attribute tag of table, and th and td should also be placed in tr."/> " in php is a tag element in HTML, used to define rows in the table. The tr element contains one or more th or td elements. tr cannot exist alone and is equivalent to the attribute tag of table, and th and td should also be placed in tr.">
Home >Backend Development >PHP Problem >What does tr tag mean in php
#What does the tr tag mean in php
tr definition line
th represents the header
td means that the cell
tr cannot exist alone, which is equivalent to the attribute label of the table, and th and td should also be placed in tr.
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Insert title here</title> </head> <body> <!-- 下面是一张表 --> <th>学生表</th> <table> <tr> <th>姓名 </th> <th>学校</th> <th>住址</th> </tr> <tr> <!-- 表示行 --> <td>张三</td> <!-- 行中子元素 --> <td>高新中学</td> <td>西安市</td> </tr> <tr> <td>王五</td> <td>长安中学</td> <td>咸阳市</td> </tr> </table> </body> </html>
Recommended learning: html tutorial
The above is the detailed content of What does tr tag mean in php. For more information, please follow other related articles on the PHP Chinese website!