table Header informationHeader information.."."> How to add a table header in html-HTML Tutorial-php.cn

How to add a table header in html

William Shakespeare
Release: 2021-07-01 14:31:42
Original
7828 people have browsed it

In an HTML table, you can add a header by using one or more "th" tags in the table tag. The th tag is used to define the header cell in the HTML table; the syntax "

..
Header information Header information
".

How to add a table header in html

The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.

htmlAdd a header

月份 存款
一月 3000 元
二月 2000 元
Copy after login

Rendering:

How to add a table header in html

Description:

tag defines the header cell in the HTML table. Header cell - Contains header information. Text within the

element is usually rendered bold and centered. bgcolor char charoff colspan Specifies the number of columns that the header cell can span. headers Specifies one or more header cells associated with the header cell. height nowrap nowrap rowspan Specifies the number of rows that the header cell can span. scope col Specifies whether the header cell is a row, column, or row The head of a group or column group. valign top width ##HTML5 Not supported. HTML 4.01 is deprecated. Recommended tutorial: "
Attribute Value Description
abbr text HTML5 is not supported.Specifies an abbreviated version of the contents in the header cell.
align left
#right
center
justify
char
HTML5 Not supported.Specifies the horizontal alignment of header cell contents.
axis category_name ##HTML5 Not supported.Classify header cells.
rgb(x,x,x)#xxxxxx
colorname
HTML5 Not supported. HTML 4.01 is deprecated.Specifies the background color of the header cell.
character HTML5 Not supported.Specifies which character should be used to align content.
number HTML5 Not supported.Specifies the offset of the alignment character.
number
header_id
pixels%
HTML5 is not supported. HTML 4.01 is deprecated.Specifies the height of the header cell.
HTML5 is not supported. HTML 4.01 is deprecated.Specifies whether the content in the header cell should be wrapped.
number
colgroup
row
rowgroup
middle
bottom
baseline
HTML5 is not supported.Specifies the vertical arrangement of header cell contents.
pixels%
Specifies the width of the header cell.
html video tutorial

"

The above is the detailed content of How to add a table header in html. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!