Table top tags for HTML tables

Source: Internet
Author: User

  to clearly distinguish the table structure in the source code, the HTML language provides <thead>, <tbody>, and <tfoot>3 tags, corresponding to the table header, table body, and footer respectively. <thead> tags are used to define the style of the top table in the table. The

Basic Syntax


Syntax explanation

Align represents horizontal alignment, Left of which is in the center, center for the right. valign represents vertical alignment, top for the home, middle for the center, bottom for the next. Example of a

file: 10-44.htm

Sets the table header style by marking.

01<!----------------------------------

02<!--file Example: 10-44.htm-->

03<!-- File Description: Set table table first style

04<!----------------------------------

05
06< Head>

07<title> Set Table table header style </title>

08
09<body>

10 <tableborder=3width=400height=100bordercolor= #336699align = "Center"

11<theadalign= centerbgcolor= #00ccff

12<tr>

13<tdcolspan=2> Web page making software </td>

14</tr

15</thead>

16<tr>

17<td> web image software</td><td>fireworks</td>

18</tr>

19<tr>

20<td> Web page production software </td><td>dreamweaver</td>

21</tr>

22<tr>

23<td> web page animation software </td><td>flash</td>

24</tr>

25</table>

26</body>
The
27
File description

Line 11th defines the style of the table header, and the 15th row sets the table header end.

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.