Table tags (table): _ HTML/Xhtml _ webpage Creation

Source: Internet
Author: User
Table is a tag that has been used for a long time and is still in use. However, we recommend that you do not use table because of the current website reconstruction) but many of my friends mistakenly think that using a table is not a standard. Actually, a table is an important element. Recently, in order to find the main table contained in a table, the table is a tag that has been used for a long time and is still in use until now. However, because of the current website reconstruction, we recommend that you do not deploy tables. Many users mistakenly think that using tables is an unstandard. Otherwise, tables are an important element.
Not long ago, I was searching for the main tags contained in tables. Of course, I would like to share them with you.
Table labels mainly contain the following labels: Table, caption, th, tr, td, thead, tfoot, tbody, col, colgroup, For each introduction as follows:

Table labels can define tables. In


















Label, you can place the table title, table row, table column, table Unit, and other tables. Define a row in the table. Define the table header.Thead, tfoot, and tbody elements allow you to group rows in a table. When creating a table, you may want to have a title row, some rows with data, and a total row at the bottom. This division enables the browser to support table body scrolling independent of the table title and footer. When a long table is printed, the table header and footer can be printed on each page that contains table data. Define a table body ).Use Tags: The table can be divided into a separate part. Tags can combine one or several rows in a table into one group.Although you may want to include one or more Label, but we recommend that you do not Label.In Tag, only Tags can define table rows. And once defined A tag is an independent part of a table. For example Span to another .Thead, tfoot, and tbody elements allow you to group rows in a table. When creating a table, you may want to have a title row, some rows with data, and a total row at the bottom. This division enables the browser to support table body scrolling independent of the table title and footer. When a long table is printed, the table header and footer can be printed on each page that contains table data. Define the table footer (footer ).Thead, tfoot, and tbody elements allow you to group rows in a table. When creating a table, you may want to have a title row, some rows with data, and a total row at the bottom. This division enables the browser to support table body scrolling independent of the table title and footer. When a long table is printed, the table header and footer can be printed on each page that contains table data. Defines the attribute values of one or more columns in a table. You can only use this attribute in tables or colgroups. Defines the group of table columns. This element allows you to combine columns for formatting. This element is only available in

The caption element can define a table title. The caption label must follow the table label. You can define only one title for each table. This title is usually centered on the table.

Defines the table header cells. The text inside this th element is usually in bold.

Defines a cell in the table.


The tag is valid.There are two ways to use Tags: a simple definition of several identical columns, and a combination of several different columns.PS: The above content is from w3school, because w3school marks copyright in the copyright information and reserves all rights. In this case, you can click here to view the details of a tag. You can also view the table introduction.

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.