Table headers for HTML tables

Source: Internet
Author: User

  In the HTML language, you can automatically add a caption to a table by marking it. In addition, the first row of the table is called the header, which can also be implemented through HTML markup.

Basic Syntax

<table> ....

<tr>

<TH> title 1</th><th> title 2</th><th> title 3</th><th> Title 4</th><th> title 5</th>

</tr>

... The

</table>

Syntax explanation

defines the width, in pixels, of the border line by the border property. A comprehensive example of





<title> table Tags </title>


br> <body>

<tableborder= "1" width= "80%" bgcolor= "#e8e8e8" cellpadding= "2"

Bordercolor= "#0000ff" bordercolorlight= "7D7DFF" bordercolordark= "#0000a0"

<tr>

< Thwidth= "30%" colspan= "2" valign= "bottom" > Atlantic Division </th>

<thwidth= "30%" colspan= "2" valign= "Bottom" > Central Division </th>

<thwidth= "30%" colspan= "2" valign= "bottom" > Southeast Division </th>

</tr>

<tr>

<tdwidth= "16%" align= "center" > Celtic </td>

<tdwidth= 16% "align=" Center ">76 Person </td>

<tdwidth=" 17% "align=" center "> Piston </td>

<tdwidth=" 17% " align= "center" > Bull </td>

<tdwidth= "17%" align= "center" > Heat </td>

<tdwidth= "17 % "Align= Center" > Wizards </td>

</tr>

<tr>

<tdwidth= "16%" align= "center" > Network </td>

<tdwidth= "16%" align= "center" > Nick </td>

<tdwidth= 17% "align=" Center "> Walker </td>

<tdwidth=" 17% "align=" center "> Knight </td>

<tdwidTh= "17%" align= "center" > Magic </td>

<tdwidth= "17%" align= "center" > Bobcat </td>

</tr

<tr>

<tdwidth= "16%" align= "center" > Raptors </td>

<tdwidth= 16% "align=" Center "> Over Jiang </td>

<tdwidth=" 17% "align=" center "> Bucks </td>

<tdwidth=" 17% "align = "center" > Cheese song </td>

<tdwidth= "17%" align= "center" > Eagle </td>

<tdwidth= "17%" align= "center" > Yao Ming </td>

</tr>

</table>

</body>



where <TH></TH> refers to the header and header of the table.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.