What does tr tag mean in php

L
Release: 2023-03-01 10:20:01
Original
7944 people have browsed it

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.

Not only is it bold, it’s also centered.

What does tr tag mean in php

<!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>
Copy after login

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!

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template