Home  >  Article  >  Web Front-end  >  Html learning (4) - table tags

Html learning (4) - table tags

黄舟
黄舟Original
2016-12-29 15:32:341228browse

Table tag

Composition:

Title tag:

<caption>

, provides a title for the table.

Header tag:

<th>

. Generally, the first row or column of the table is formatted and displayed in bold.

Row label:

<tr>

Cell label:

<td>

, added to the row label. Add cells to rows.

[code]


    
        
        table
        

    

    

        
                <tr>
                    
                    <td>张三
                <tr>
                    <td>30
个人信息

<tr> <tr> <td>张三 <td>30
个人信息

<caption>表格标题 <tr> <th>姓名: <th>年龄: <tr> <td>张三 <td>39

Html learning (4) - table tags


The above is the content of Html learning (4) - table tags. For more related content, please pay attention to the PHP Chinese website (www. php.cn)!


Statement:
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