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.
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.
|
Define a row in the table.
Defines a cell 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 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.