Home Web Front-end HTML Tutorial In-depth understanding of table tags (table) in html

In-depth understanding of table tags (table) in html

Apr 02, 2017 am 10:01 AM
html

Table(table) is a tag that has been used by everyone for a long time. It is still used until now. However, due to the current website reconstruction, it is recommended that you do not use tables for layout. Many friends mistakenly think that using tables is non-standard. In fact, this is not the case. Tables are an important element. Not long ago, in order to find the main


# table (table) is a tag that has been used by everyone for a long time, and it is still used until now, but because In the current website reconstruction, it is recommended that you do not use tables for layout. Many friends mistakenly think that using tables is so-called non-standard. In fact, it is not the case. Tables are an important element.
Not long ago, I was looking for the main tags contained in the table. Of course, I found it and shared it with everyone.
The table tags mainly include table, caption, th, tr, td, thead, tfoot, tbody, col, colgroup. The introduction of each is as follows:


table tag can Define the table. Inside the
tag, you can place table titles, table rows, table columns, table cells, and other tables.

Define a row in the table.

Define the header of the table.
Thethead, tfoot, and tbody elements give you the ability to group rows in a table. When you create a table, you probably want to have a header row, some rows with data, and a total row at the bottom. This division gives the browser the ability to support table body scrolling independent of table headers and footers. When long tables are printed, the table header and footer can be printed on each page that contains the table data.

Define a table body (text).
Use the tag to divide the table into a separate section. The tag groups one or more rows in a table.
Although you may want to include one, or even two or more tags in the table, we recommend that there be no tags in the table.
In the tag, only the tag can define table rows. And once defined, a tag is an independent part of the table. For example, you cannot cross from one into another .
Thethead, tfoot, and tbody elements give you the ability to group rows in a table. When you create a table, you probably want to have a header row, some rows with data, and a total row at the bottom. This division gives the browser the ability to support table body scrolling independent of table headers and footers. When long tables are printed, the table header and footer can be printed on each page that contains the table data.

Define the footer (footnote) of the table.
Thethead, tfoot, and tbody elements give you the ability to group rows in a table. When you create a table, you probably want to have a header row, some rows with data, and a total row at the bottom. This division gives the browser the ability to support table body scrolling independent of table headers and footers. When long tables are printed, the table header and footer can be printed on each page that contains the table data.

Define the attribute value for one or more columns in a table. You can only use this attribute in a table or colgroup.

Define the grouping of table columns. This element allows you to group columns for formatting purposes. This element is only legal inside a

The caption element can define a table title. The caption tag must immediately follow the table tag. You can define only one title per table. Usually the title will be centered above the table.

Define the header cell in the table. Text inside this th element will usually be rendered bold.

Define a cell in the table.
tag.
There are two ways to use the tag: one is to simply define several identical columns, and the other is to combine several different columns.

The above is the detailed content of In-depth understanding of table tags (table) in html. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Table Border in HTML Table Border in HTML Sep 04, 2024 pm 04:49 PM

Guide to Table Border in HTML. Here we discuss multiple ways for defining table-border with examples of the Table Border in HTML.

Nested Table in HTML Nested Table in HTML Sep 04, 2024 pm 04:49 PM

This is a guide to Nested Table in HTML. Here we discuss how to create a table within the table along with the respective examples.

HTML margin-left HTML margin-left Sep 04, 2024 pm 04:48 PM

Guide to HTML margin-left. Here we discuss a brief overview on HTML margin-left and its Examples along with its Code Implementation.

HTML Table Layout HTML Table Layout Sep 04, 2024 pm 04:54 PM

Guide to HTML Table Layout. Here we discuss the Values of HTML Table Layout along with the examples and outputs n detail.

HTML Input Placeholder HTML Input Placeholder Sep 04, 2024 pm 04:54 PM

Guide to HTML Input Placeholder. Here we discuss the Examples of HTML Input Placeholder along with the codes and outputs.

Moving Text in HTML Moving Text in HTML Sep 04, 2024 pm 04:45 PM

Guide to Moving Text in HTML. Here we discuss an introduction, how marquee tag work with syntax and examples to implement.

HTML Ordered List HTML Ordered List Sep 04, 2024 pm 04:43 PM

Guide to the HTML Ordered List. Here we also discuss introduction of HTML Ordered list and types along with their example respectively

HTML onclick Button HTML onclick Button Sep 04, 2024 pm 04:49 PM

Guide to HTML onclick Button. Here we discuss their introduction, working, examples and onclick Event in various events respectively.

See all articles